Hi Mike,
Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system. Switch relays or whatever. I assume your spindle can jog + and - like an servo? I've uploaded a file to your folder that may work for you.
The XML file doesn't seem to have any Dynomotion Configuration in it. Did you upload the right file? Did you save the Mach3 Settings?
You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
Let me know haw far this gets you.
Regards
TK
Group: DynoMotion |
Message: 5464 |
From: michaelthomasn |
Date: 7/26/2012 |
Subject: Re: Mach 3 Spindle struggle |
Oh....Ok. It works great as far as direction goes, now.
I don't know what I saved/sent.....I thought it was right, but obviously not.
Accurate speed is now what I'm after.
My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
How do I set up the spindle in Mach motor config?
What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
I messed with it for a bit but didn't seem to make much headway.
Thanks again,
Mike
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Mike,
> Â
> Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system. Switch relays or whatever. I assume your spindle can jog + and - like an servo? I've uploaded a file to your folder that may work for you.
> Â
> The XML file doesn't seem to have any Dynomotion Configuration in it. Did you upload the right file? Did you save the Mach3 Settings?
> Â
> You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> Â
> Let me know haw far this gets you.
> Â
> Regards
> TK
>
> From: michaelthomasn <michaelniksch@...>
> To: DynoMotion@yahoogroups.com
> Sent: Thursday, July 26, 2012 3:12 PM
> Subject: [DynoMotion] Mach 3 Spindle struggle
>
>
> Â
> Tom,
>
> I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
>
> I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
>
> The machine jogs and homes just fine, but I cannot get the spindle to work properly.
>
> After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
>
> I have attached my XML and spindle prog in my folder.
>
> Please help.....I've tried most everything.
>
> http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
>
> Mike
>
|
|
Group: DynoMotion |
Message: 5465 |
From: michaelthomasn |
Date: 7/27/2012 |
Subject: Re: Mach 3 Spindle struggle |
Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.
I hope that is right.
Its working right so far.
On to the rigid tap journey.
Thanks,
Mike
--- In DynoMotion@yahoogroups.com, "michaelthomasn" <michaelniksch@...> wrote:
>
>
> Oh....Ok. It works great as far as direction goes, now.
>
> I don't know what I saved/sent.....I thought it was right, but obviously not.
>
> Accurate speed is now what I'm after.
>
> My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
>
> So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
>
> How do I set up the spindle in Mach motor config?
>
> What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
>
> Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
>
> I messed with it for a bit but didn't seem to make much headway.
>
> Thanks again,
>
> Mike
>
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Mike,
> > Â
> > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system. Switch relays or whatever. I assume your spindle can jog + and - like an servo? I've uploaded a file to your folder that may work for you.
> > Â
> > The XML file doesn't seem to have any Dynomotion Configuration in it. Did you upload the right file? Did you save the Mach3 Settings?
> > Â
> > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> > Â
> > Let me know haw far this gets you.
> > Â
> > Regards
> > TK
> >
> > From: michaelthomasn <michaelniksch@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Thursday, July 26, 2012 3:12 PM
> > Subject: [DynoMotion] Mach 3 Spindle struggle
> >
> >
> > Â
> > Tom,
> >
> > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> >
> > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> >
> > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> >
> > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> >
> > I have attached my XML and spindle prog in my folder.
> >
> > Please help.....I've tried most everything.
> >
> > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> >
> > Mike
> >
>
|
|
Group: DynoMotion |
Message: 5466 |
From: Tom Kerekes |
Date: 7/27/2012 |
Subject: Re: Mach 3 Spindle struggle |
Hi Mike,
I'm not sure I follow all that. But if your happy, I'm happy.
Regards
TK
Group: DynoMotion |
Message: 5467 |
From: michaelthomasn |
Date: 7/27/2012 |
Subject: Re: Mach 3 Spindle struggle |
Tom,
I mean I did not set up the spindle as a motor output in Mach.
I copied over the rigid tapping script and put the proper c program into the plugin and had it rigid tapping in air on the grinder. It looked like it should, and I didn't get any error messages.
If the machine will tap without any encoder following error at 700rpm, then I feel like it should thread grind at 1 rpm without trouble...lol.
So after looking over the c program for the rigid tapping, I must admit that there is a fair amount of stuff I don't follow and I need some help to modify it to thread grind.
I basically need to do exactly what the rigid tap does in z and spindle movement, but add a plunge in x (Lathe setup) at the beginning of the sequence and a retract in x at the end of the thread before the rewind. Does that make sense the way I described it?
Actually, the rewind (tap retract) is not necessary, I just need to be able to run the sequence over and over from the same start point on the spindle and z for multiple passes.
Let me know what you think.
Thanks,
Mike
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Mike,
> Â
> I'm not sure I follow all that. But if your happy, I'm happy.
> Â
> Regards
> TK
>
> From: michaelthomasn <michaelniksch@...>
> To: DynoMotion@yahoogroups.com
> Sent: Friday, July 27, 2012 8:09 AM
> Subject: [DynoMotion] Re: Mach 3 Spindle struggle
>
>
> Â
>
> Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.
>
> I hope that is right.
>
> Its working right so far.
>
> On to the rigid tap journey.
>
> Thanks,
>
> Mike
> --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> >
> >
> > Oh....Ok. It works great as far as direction goes, now.
> >
> > I don't know what I saved/sent.....I thought it was right, but obviously not.
> >
> > Accurate speed is now what I'm after.
> >
> > My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
> >
> > So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
> >
> > How do I set up the spindle in Mach motor config?
> >
> > What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
> >
> > Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
> >
> > I messed with it for a bit but didn't seem to make much headway.
> >
> > Thanks again,
> >
> > Mike
> >
> >
> > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Mike,
> > > ÃÂ
> > > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.ÃÂ Switch relays or whatever.ÃÂ I assume your spindle can jog + and - like an servo?ÃÂ I've uploaded a file to your folder that may work for you.
> > > ÃÂ
> > > The XML file doesn't seem to have any Dynomotion Configuration in it.ÃÂ Did you upload the right file?ÃÂ Did you save the Mach3 Settings?
> > > ÃÂ
> > > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> > > ÃÂ
> > > Let me know haw far this gets you.
> > > ÃÂ
> > > Regards
> > > TK
> > >
> > > From: michaelthomasn <michaelniksch@>
> > > To: mailto:DynoMotion%40yahoogroups.com
> > > Sent: Thursday, July 26, 2012 3:12 PM
> > > Subject: [DynoMotion] Mach 3 Spindle struggle
> > >
> > >
> > > ÃÂ
> > > Tom,
> > >
> > > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> > >
> > > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> > >
> > > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> > >
> > > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> > >
> > > I have attached my XML and spindle prog in my folder.
> > >
> > > Please help.....I've tried most everything.
> > >
> > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > >
> > > Mike
> > >
> >
>
|
|
Group: DynoMotion |
Message: 5468 |
From: Tom Kerekes |
Date: 7/27/2012 |
Subject: Re: Mach 3 Spindle struggle |
Hi Mike,
I would just add the X plunge in GCode before doing the Rigid Tap operation. Shouldn't that work for you? That might delay a bit after the X plunge before the Spindle starts rotating. Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point.
To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program.
// retract fully DoTap(-ZDist, RetractRate, TPI);
and also add the +ZDist as shown below
Delay_sec(1.0); Move(ZAXIS,Z0+ZDist); // move to where we ended up while (!CheckDone(ZAXIS)) ;
Let me know how much of this works :}
TK
Group: DynoMotion |
Message: 5469 |
From: Michael Niksch |
Date: 7/27/2012 |
Subject: Re: Mach 3 Spindle struggle |
Tom,
Yes, adding code before and after should be fine. I will remove the lines you suggested and give it a go Monday morning.
Thanks very much,
Mike On Jul 27, 2012, at 5:16 PM, Tom Kerekes <tk@...> wrote:
Hi Mike,
I would just add the X plunge in GCode before doing the Rigid Tap operation. Shouldn't that work for you? That might delay a bit after the X plunge before the Spindle starts rotating. Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point.
To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program.
// retract fully DoTap(-ZDist, RetractRate, TPI);
and also add the +ZDist as shown below
Delay_sec(1.0); Move(ZAXIS,Z0+ZDist); // move to where we ended up while (!CheckDone(ZAXIS)) ;
Let me know how much of this works :}
TK
Group: DynoMotion |
Message: 5470 |
From: michaelthomasn |
Date: 7/28/2012 |
Subject: Re: Mach 3 Spindle struggle |
Tom,
I made the adjustments you suggested to the notifytap program, and I could not get it to run the tap sequence. It would position itself in preparation, then just skip over the tap part and move on to the code after.
I fiddled around with it and just ended up adding some lines in the c program to do the retract. It seems to work ok. I uploaded the c prog and my XML to my folder. Could you let me know if it is an acceptable way to do the retract?
Also, an odd thing happens when using the edit button in Mach. I press the button, and it brings up the txt file. I make my adjustment, save it, and when I close the file the program immediately runs in mach without my consent. If I hit the emergency stop, the program stops.....but when I re-initialize it will start again where it was when I hit the E-stop. I wonder if this is just some weird anomaly in MachTurn. I am using 3.043.062....because I heard that the lockdown version had problems in Turn. Maybe I should try the lockdown.
Any ideas on that?
Thanks,
Mike
--- In DynoMotion@yahoogroups.com, Michael Niksch <michaelniksch@...> wrote:
>
> Tom,
>
> Yes, adding code before and after should be fine. I will remove the lines you suggested and give it a go Monday morning.
>
> Thanks very much,
>
> Mike
>
> On Jul 27, 2012, at 5:16 PM, Tom Kerekes <tk@...> wrote:
>
> > Hi Mike,
> >
> > I would just add the X plunge in GCode before doing the Rigid Tap operation. Shouldn't that work for you? That might delay a bit after the X plunge before the Spindle starts rotating. Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point.
> >
> > To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program.
> >
> > // retract fully
> > DoTap(-ZDist, RetractRate, TPI);
> > and also add the +ZDist as shown below
> >
> > Delay_sec(1.0);
> > Move(ZAXIS,Z0+ZDist); // move to where we ended up
> > while (!CheckDone(ZAXIS)) ;
> > Let me know how much of this works :}
> >
> > TK
> >
> >
> > From: michaelthomasn <michaelniksch@...>
> > To: DynoMotion@yahoogroups.com
> > Sent: Friday, July 27, 2012 1:35 PM
> > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> >
> >
> > Tom,
> >
> > I mean I did not set up the spindle as a motor output in Mach.
> >
> > I copied over the rigid tapping script and put the proper c program into the plugin and had it rigid tapping in air on the grinder. It looked like it should, and I didn't get any error messages.
> >
> > If the machine will tap without any encoder following error at 700rpm, then I feel like it should thread grind at 1 rpm without trouble...lol.
> >
> > So after looking over the c program for the rigid tapping, I must admit that there is a fair amount of stuff I don't follow and I need some help to modify it to thread grind.
> >
> > I basically need to do exactly what the rigid tap does in z and spindle movement, but add a plunge in x (Lathe setup) at the beginning of the sequence and a retract in x at the end of the thread before the rewind. Does that make sense the way I described it?
> >
> > Actually, the rewind (tap retract) is not necessary, I just need to be able to run the sequence over and over from the same start point on the spindle and z for multiple passes.
> >
> > Let me know what you think.
> >
> > Thanks,
> >
> > Mike
> >
> > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Mike,
> > > Ã
> > > I'm not sure I follow all that.Ã But if your happy, I'm happy.
> > > Ã
> > > Regards
> > > TK
> > >
> > > From: michaelthomasn <michaelniksch@>
> > > To: mailto:DynoMotion%40yahoogroups.com
> > > Sent: Friday, July 27, 2012 8:09 AM
> > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > >
> > >
> > > Ã
> > >
> > > Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.
> > >
> > > I hope that is right.
> > >
> > > Its working right so far.
> > >
> > > On to the rigid tap journey.
> > >
> > > Thanks,
> > >
> > > Mike
> > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > >
> > > >
> > > > Oh....Ok. It works great as far as direction goes, now.
> > > >
> > > > I don't know what I saved/sent.....I thought it was right, but obviously not.
> > > >
> > > > Accurate speed is now what I'm after.
> > > >
> > > > My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
> > > >
> > > > So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
> > > >
> > > > How do I set up the spindle in Mach motor config?
> > > >
> > > > What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
> > > >
> > > > Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
> > > >
> > > > I messed with it for a bit but didn't seem to make much headway.
> > > >
> > > > Thanks again,
> > > >
> > > > Mike
> > > >
> > > >
> > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Mike,
> > > > > ÃâÃ
> > > > > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.Ãâà Switch relays or whatever.Ãâà I assume your spindle can jog + and - like an servo?Ãâà I've uploaded a file to your folder that may work for you.
> > > > > ÃâÃ
> > > > > The XML file doesn't seem to have any Dynomotion Configuration in it.Ãâà Did you upload the right file?Ãâà Did you save the Mach3 Settings?
> > > > > ÃâÃ
> > > > > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> > > > > ÃâÃ
> > > > > Let me know haw far this gets you.
> > > > > ÃâÃ
> > > > > Regards
> > > > > TK
> > > > >
> > > > > From: michaelthomasn <michaelniksch@>
> > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > Sent: Thursday, July 26, 2012 3:12 PM
> > > > > Subject: [DynoMotion] Mach 3 Spindle struggle
> > > > >
> > > > >
> > > > > ÃâÃ
> > > > > Tom,
> > > > >
> > > > > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> > > > >
> > > > > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> > > > >
> > > > > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> > > > >
> > > > > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> > > > >
> > > > > I have attached my XML and spindle prog in my folder.
> > > > >
> > > > > Please help.....I've tried most everything.
> > > > >
> > > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > > >
> > > > > Mike
> > > > >
> > > >
> > >
> >
> >
> >
> >
>
|
|
Group: DynoMotion |
Message: 5471 |
From: Tom Kerekes |
Date: 7/29/2012 |
Subject: Re: Mach 3 Spindle struggle |
Hi Mike,
Not sure why mine didn't work. But anyways yours is good.
I think if you remove the line:
DoTap(-ZDist, RetractRate, TPI);
Then it will do a rapid move back in Z rather than an "unTap" type of move so it will be faster.
I haven't seen that weird self start of Mach3. Hard to imagine how our Plugin could be doing that. Please try the lockdown version to see if it persists.
Regards
TK
Group: DynoMotion |
Message: 5472 |
From: Michael Niksch |
Date: 7/29/2012 |
Subject: Re: Mach 3 Spindle struggle |
Tom,
Yours may not have worked because I may have not followed your directions properly.....lol. It let me know where to look, though.
I left the DoTap(-ZDist, RetractRate, TPI); in because I need the spindle axis to return to exactly where it started when doing the multiple passes necessary for the operation and I didn't know how to do it otherwise. I'm open to suggestions, though. :-)
I didn't think to try running a regular program without plugin calls to see if it would do the self start. I'll try that first to maybe narrow down things a bit.
Thanks,
Mike On Jul 29, 2012, at 5:19 PM, Tom Kerekes < tk@...> wrote:
Hi Mike,
Not sure why mine didn't work. But anyways yours is good.
I think if you remove the line:
DoTap(-ZDist, RetractRate, TPI);
Then it will do a rapid move back in Z rather than an "unTap" type of move so it will be faster.
I haven't seen that weird self start of Mach3. Hard to imagine how our Plugin could be doing that. Please try the lockdown version to see if it persists.
Regards
TK
Group: DynoMotion |
Message: 5475 |
From: michaelthomasn |
Date: 7/30/2012 |
Subject: Re: Mach 3 Spindle struggle |
Tom,
I installed the lockdown version. It still does the same things. If I use the load button, or the edit button to open or modify a program with a notify plugin......it starts on its own on return to mach.
It does not do this with a regular g code pgm.
I am using the turn version with an different screenset.
??????
Mike
--- In DynoMotion@yahoogroups.com, Michael Niksch <michaelniksch@...> wrote:
>
> Tom,
>
> Yours may not have worked because I may have not followed your directions properly.....lol. It let me know where to look, though.
>
> I left the DoTap(-ZDist, RetractRate, TPI); in because I need the spindle axis to return to exactly where it started when doing the multiple passes necessary for the operation and I didn't know how to do it otherwise. I'm open to suggestions, though. :-)
>
> I didn't think to try running a regular program without plugin calls to see if it would do the self start. I'll try that first to maybe narrow down things a bit.
>
> Thanks,
>
> Mike
>
> On Jul 29, 2012, at 5:19 PM, Tom Kerekes <tk@...> wrote:
>
> > Hi Mike,
> >
> > Not sure why mine didn't work. But anyways yours is good.
> >
> > I think if you remove the line:
> >
> > DoTap(-ZDist, RetractRate, TPI);
> >
> > Then it will do a rapid move back in Z rather than an "unTap" type of move so it will be faster.
> >
> > I haven't seen that weird self start of Mach3. Hard to imagine how our Plugin could be doing that. Please try the lockdown version to see if it persists.
> >
> > Regards
> > TK
> >
> >
> > From: michaelthomasn <michaelniksch@...>
> > To: DynoMotion@yahoogroups.com
> > Sent: Saturday, July 28, 2012 11:31 AM
> > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> >
> >
> > Tom,
> >
> > I made the adjustments you suggested to the notifytap program, and I could not get it to run the tap sequence. It would position itself in preparation, then just skip over the tap part and move on to the code after.
> >
> > I fiddled around with it and just ended up adding some lines in the c program to do the retract. It seems to work ok. I uploaded the c prog and my XML to my folder. Could you let me know if it is an acceptable way to do the retract?
> >
> > Also, an odd thing happens when using the edit button in Mach. I press the button, and it brings up the txt file. I make my adjustment, save it, and when I close the file the program immediately runs in mach without my consent. If I hit the emergency stop, the program stops.....but when I re-initialize it will start again where it was when I hit the E-stop. I wonder if this is just some weird anomaly in MachTurn. I am using 3.043.062....because I heard that the lockdown version had problems in Turn. Maybe I should try the lockdown.
> >
> > Any ideas on that?
> >
> > Thanks,
> >
> > Mike
> >
> > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > >
> > > Tom,
> > >
> > > Yes, adding code before and after should be fine. I will remove the lines you suggested and give it a go Monday morning.
> > >
> > > Thanks very much,
> > >
> > > Mike
> > >
> > > On Jul 27, 2012, at 5:16 PM, Tom Kerekes <tk@> wrote:
> > >
> > > > Hi Mike,
> > > >
> > > > I would just add the X plunge in GCode before doing the Rigid Tap operation. Shouldn't that work for you? That might delay a bit after the X plunge before the Spindle starts rotating. Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point.
> > > >
> > > > To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program.
> > > >
> > > > // retract fully
> > > > DoTap(-ZDist, RetractRate, TPI);
> > > > and also add the +ZDist as shown below
> > > >
> > > > Delay_sec(1.0);
> > > > Move(ZAXIS,Z0+ZDist); // move to where we ended up
> > > > while (!CheckDone(ZAXIS)) ;
> > > > Let me know how much of this works :}
> > > >
> > > > TK
> > > >
> > > >
> > > > From: michaelthomasn <michaelniksch@>
> > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > Sent: Friday, July 27, 2012 1:35 PM
> > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > >
> > > >
> > > > Tom,
> > > >
> > > > I mean I did not set up the spindle as a motor output in Mach.
> > > >
> > > > I copied over the rigid tapping script and put the proper c program into the plugin and had it rigid tapping in air on the grinder. It looked like it should, and I didn't get any error messages.
> > > >
> > > > If the machine will tap without any encoder following error at 700rpm, then I feel like it should thread grind at 1 rpm without trouble...lol.
> > > >
> > > > So after looking over the c program for the rigid tapping, I must admit that there is a fair amount of stuff I don't follow and I need some help to modify it to thread grind.
> > > >
> > > > I basically need to do exactly what the rigid tap does in z and spindle movement, but add a plunge in x (Lathe setup) at the beginning of the sequence and a retract in x at the end of the thread before the rewind. Does that make sense the way I described it?
> > > >
> > > > Actually, the rewind (tap retract) is not necessary, I just need to be able to run the sequence over and over from the same start point on the spindle and z for multiple passes.
> > > >
> > > > Let me know what you think.
> > > >
> > > > Thanks,
> > > >
> > > > Mike
> > > >
> > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Mike,
> > > > > Ãâ
> > > > > I'm not sure I follow all that.Ãâ But if your happy, I'm happy.
> > > > > Ãâ
> > > > > Regards
> > > > > TK
> > > > >
> > > > > From: michaelthomasn <michaelniksch@>
> > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > Sent: Friday, July 27, 2012 8:09 AM
> > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > >
> > > > >
> > > > > Ãâ
> > > > >
> > > > > Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.
> > > > >
> > > > > I hope that is right.
> > > > >
> > > > > Its working right so far.
> > > > >
> > > > > On to the rigid tap journey.
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Mike
> > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > >
> > > > > >
> > > > > > Oh....Ok. It works great as far as direction goes, now.
> > > > > >
> > > > > > I don't know what I saved/sent.....I thought it was right, but obviously not.
> > > > > >
> > > > > > Accurate speed is now what I'm after.
> > > > > >
> > > > > > My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
> > > > > >
> > > > > > So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
> > > > > >
> > > > > > How do I set up the spindle in Mach motor config?
> > > > > >
> > > > > > What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
> > > > > >
> > > > > > Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
> > > > > >
> > > > > > I messed with it for a bit but didn't seem to make much headway.
> > > > > >
> > > > > > Thanks again,
> > > > > >
> > > > > > Mike
> > > > > >
> > > > > >
> > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Mike,
> > > > > > > ÃÆ'ââ¬Å¡Ãâ
> > > > > > > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.ÃÆ'ââ¬Å¡Ãâ Switch relays or whatever.ÃÆ'ââ¬Å¡Ãâ I assume your spindle can jog + and - like an servo?ÃÆ'ââ¬Å¡Ãâ I've uploaded a file to your folder that may work for you.
> > > > > > > ÃÆ'ââ¬Å¡Ãâ
> > > > > > > The XML file doesn't seem to have any Dynomotion Configuration in it.ÃÆ'ââ¬Å¡Ãâ Did you upload the right file?ÃÆ'ââ¬Å¡Ãâ Did you save the Mach3 Settings?
> > > > > > > ÃÆ'ââ¬Å¡Ãâ
> > > > > > > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> > > > > > > ÃÆ'ââ¬Å¡Ãâ
> > > > > > > Let me know haw far this gets you.
> > > > > > > ÃÆ'ââ¬Å¡Ãâ
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > Sent: Thursday, July 26, 2012 3:12 PM
> > > > > > > Subject: [DynoMotion] Mach 3 Spindle struggle
> > > > > > >
> > > > > > >
> > > > > > > ÃÆ'ââ¬Å¡Ãâ
> > > > > > > Tom,
> > > > > > >
> > > > > > > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> > > > > > >
> > > > > > > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> > > > > > >
> > > > > > > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> > > > > > >
> > > > > > > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> > > > > > >
> > > > > > > I have attached my XML and spindle prog in my folder.
> > > > > > >
> > > > > > > Please help.....I've tried most everything.
> > > > > > >
> > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > > > > >
> > > > > > > Mike
> > > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
> >
> >
>
|
|
Group: DynoMotion |
Message: 5476 |
From: michaelthomasn |
Date: 7/30/2012 |
Subject: Re: Mach 3 Spindle struggle |
Ok....the problem seems to stem from mach trying to generate the toolpath. I have just been pressing cancel. It wants to hang up on the m84.
If I got to the top of the screen and select view/regen toolpath....the same thing will happen.
Ideas???
Mike
--- In DynoMotion@yahoogroups.com, "michaelthomasn" <michaelniksch@...> wrote:
>
> Tom,
>
> I installed the lockdown version. It still does the same things. If I use the load button, or the edit button to open or modify a program with a notify plugin......it starts on its own on return to mach.
>
> It does not do this with a regular g code pgm.
>
> I am using the turn version with an different screenset.
> ??????
>
> Mike
>
> --- In DynoMotion@yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> >
> > Tom,
> >
> > Yours may not have worked because I may have not followed your directions properly.....lol. It let me know where to look, though.
> >
> > I left the DoTap(-ZDist, RetractRate, TPI); in because I need the spindle axis to return to exactly where it started when doing the multiple passes necessary for the operation and I didn't know how to do it otherwise. I'm open to suggestions, though. :-)
> >
> > I didn't think to try running a regular program without plugin calls to see if it would do the self start. I'll try that first to maybe narrow down things a bit.
> >
> > Thanks,
> >
> > Mike
> >
> > On Jul 29, 2012, at 5:19 PM, Tom Kerekes <tk@> wrote:
> >
> > > Hi Mike,
> > >
> > > Not sure why mine didn't work. But anyways yours is good.
> > >
> > > I think if you remove the line:
> > >
> > > DoTap(-ZDist, RetractRate, TPI);
> > >
> > > Then it will do a rapid move back in Z rather than an "unTap" type of move so it will be faster.
> > >
> > > I haven't seen that weird self start of Mach3. Hard to imagine how our Plugin could be doing that. Please try the lockdown version to see if it persists.
> > >
> > > Regards
> > > TK
> > >
> > >
> > > From: michaelthomasn <michaelniksch@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Saturday, July 28, 2012 11:31 AM
> > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > >
> > >
> > > Tom,
> > >
> > > I made the adjustments you suggested to the notifytap program, and I could not get it to run the tap sequence. It would position itself in preparation, then just skip over the tap part and move on to the code after.
> > >
> > > I fiddled around with it and just ended up adding some lines in the c program to do the retract. It seems to work ok. I uploaded the c prog and my XML to my folder. Could you let me know if it is an acceptable way to do the retract?
> > >
> > > Also, an odd thing happens when using the edit button in Mach. I press the button, and it brings up the txt file. I make my adjustment, save it, and when I close the file the program immediately runs in mach without my consent. If I hit the emergency stop, the program stops.....but when I re-initialize it will start again where it was when I hit the E-stop. I wonder if this is just some weird anomaly in MachTurn. I am using 3.043.062....because I heard that the lockdown version had problems in Turn. Maybe I should try the lockdown.
> > >
> > > Any ideas on that?
> > >
> > > Thanks,
> > >
> > > Mike
> > >
> > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > >
> > > > Tom,
> > > >
> > > > Yes, adding code before and after should be fine. I will remove the lines you suggested and give it a go Monday morning.
> > > >
> > > > Thanks very much,
> > > >
> > > > Mike
> > > >
> > > > On Jul 27, 2012, at 5:16 PM, Tom Kerekes <tk@> wrote:
> > > >
> > > > > Hi Mike,
> > > > >
> > > > > I would just add the X plunge in GCode before doing the Rigid Tap operation. Shouldn't that work for you? That might delay a bit after the X plunge before the Spindle starts rotating. Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point.
> > > > >
> > > > > To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program.
> > > > >
> > > > > // retract fully
> > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > and also add the +ZDist as shown below
> > > > >
> > > > > Delay_sec(1.0);
> > > > > Move(ZAXIS,Z0+ZDist); // move to where we ended up
> > > > > while (!CheckDone(ZAXIS)) ;
> > > > > Let me know how much of this works :}
> > > > >
> > > > > TK
> > > > >
> > > > >
> > > > > From: michaelthomasn <michaelniksch@>
> > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > Sent: Friday, July 27, 2012 1:35 PM
> > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > >
> > > > >
> > > > > Tom,
> > > > >
> > > > > I mean I did not set up the spindle as a motor output in Mach.
> > > > >
> > > > > I copied over the rigid tapping script and put the proper c program into the plugin and had it rigid tapping in air on the grinder. It looked like it should, and I didn't get any error messages.
> > > > >
> > > > > If the machine will tap without any encoder following error at 700rpm, then I feel like it should thread grind at 1 rpm without trouble...lol.
> > > > >
> > > > > So after looking over the c program for the rigid tapping, I must admit that there is a fair amount of stuff I don't follow and I need some help to modify it to thread grind.
> > > > >
> > > > > I basically need to do exactly what the rigid tap does in z and spindle movement, but add a plunge in x (Lathe setup) at the beginning of the sequence and a retract in x at the end of the thread before the rewind. Does that make sense the way I described it?
> > > > >
> > > > > Actually, the rewind (tap retract) is not necessary, I just need to be able to run the sequence over and over from the same start point on the spindle and z for multiple passes.
> > > > >
> > > > > Let me know what you think.
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Mike
> > > > >
> > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Mike,
> > > > > > Ãâ
> > > > > > I'm not sure I follow all that.Ãâ But if your happy, I'm happy.
> > > > > > Ãâ
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > Sent: Friday, July 27, 2012 8:09 AM
> > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > >
> > > > > >
> > > > > > Ãâ
> > > > > >
> > > > > > Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.
> > > > > >
> > > > > > I hope that is right.
> > > > > >
> > > > > > Its working right so far.
> > > > > >
> > > > > > On to the rigid tap journey.
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Mike
> > > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > > >
> > > > > > >
> > > > > > > Oh....Ok. It works great as far as direction goes, now.
> > > > > > >
> > > > > > > I don't know what I saved/sent.....I thought it was right, but obviously not.
> > > > > > >
> > > > > > > Accurate speed is now what I'm after.
> > > > > > >
> > > > > > > My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
> > > > > > >
> > > > > > > So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
> > > > > > >
> > > > > > > How do I set up the spindle in Mach motor config?
> > > > > > >
> > > > > > > What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
> > > > > > >
> > > > > > > Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
> > > > > > >
> > > > > > > I messed with it for a bit but didn't seem to make much headway.
> > > > > > >
> > > > > > > Thanks again,
> > > > > > >
> > > > > > > Mike
> > > > > > >
> > > > > > >
> > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Mike,
> > > > > > > > ÃÆ'ââ¬Å¡Ãâ
> > > > > > > > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.ÃÆ'ââ¬Å¡Ãâ Switch relays or whatever.ÃÆ'ââ¬Å¡Ãâ I assume your spindle can jog + and - like an servo?ÃÆ'ââ¬Å¡Ãâ I've uploaded a file to your folder that may work for you.
> > > > > > > > ÃÆ'ââ¬Å¡Ãâ
> > > > > > > > The XML file doesn't seem to have any Dynomotion Configuration in it.ÃÆ'ââ¬Å¡Ãâ Did you upload the right file?ÃÆ'ââ¬Å¡Ãâ Did you save the Mach3 Settings?
> > > > > > > > ÃÆ'ââ¬Å¡Ãâ
> > > > > > > > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> > > > > > > > ÃÆ'ââ¬Å¡Ãâ
> > > > > > > > Let me know haw far this gets you.
> > > > > > > > ÃÆ'ââ¬Å¡Ãâ
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > Sent: Thursday, July 26, 2012 3:12 PM
> > > > > > > > Subject: [DynoMotion] Mach 3 Spindle struggle
> > > > > > > >
> > > > > > > >
> > > > > > > > ÃÆ'ââ¬Å¡Ãâ
> > > > > > > > Tom,
> > > > > > > >
> > > > > > > > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> > > > > > > >
> > > > > > > > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> > > > > > > >
> > > > > > > > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> > > > > > > >
> > > > > > > > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> > > > > > > >
> > > > > > > > I have attached my XML and spindle prog in my folder.
> > > > > > > >
> > > > > > > > Please help.....I've tried most everything.
> > > > > > > >
> > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > > > > > >
> > > > > > > > Mike
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 5479 |
From: Tom Kerekes |
Date: 7/30/2012 |
Subject: Re: Mach 3 Spindle struggle |
Hi Mike,
I think whenever Mach3 generates the tool path it Interprets through all the GCode which calls the M codes and triggers rigid tapping and so forth.
Try the Mach3 | Config | General Config | Ignore M Calls while loading option.
Otherwise there may be a way to tell if it is a tool path regeneration inside the M84 and skip doing anything.
Regards
TK
Group: DynoMotion |
Message: 5480 |
From: michaelthomasn |
Date: 7/30/2012 |
Subject: Re: Mach 3 Spindle struggle |
You got it......thanks again.
Mike
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Mike,
> Â
> I think whenever Mach3 generates the tool path it Interprets through all the GCode which calls the M codes and triggers rigid tapping and so forth.
> Â
> Try the Mach3 | Config | General Config | Ignore M Calls while loading option.
> Â
> Otherwise there may be a way to tell if it is a tool path regeneration inside the M84 and skip doing anything.
> Â
> Regards
> TKÂ
>
> From: michaelthomasn <michaelniksch@...>
> To: DynoMotion@yahoogroups.com
> Sent: Monday, July 30, 2012 10:22 AM
> Subject: [DynoMotion] Re: Mach 3 Spindle struggle
>
>
> Â
> Ok....the problem seems to stem from mach trying to generate the toolpath. I have just been pressing cancel. It wants to hang up on the m84.
>
> If I got to the top of the screen and select view/regen toolpath....the same thing will happen.
>
> Ideas???
>
> Mike
>
> --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> >
> > Tom,
> >
> > I installed the lockdown version. It still does the same things. If I use the load button, or the edit button to open or modify a program with a notify plugin......it starts on its own on return to mach.
> >
> > It does not do this with a regular g code pgm.
> >
> > I am using the turn version with an different screenset.
> > ??????
> >
> > Mike
> >
> > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > >
> > > Tom,
> > >
> > > Yours may not have worked because I may have not followed your directions properly.....lol. It let me know where to look, though.
> > >
> > > I left the DoTap(-ZDist, RetractRate, TPI); in because I need the spindle axis to return to exactly where it started when doing the multiple passes necessary for the operation and I didn't know how to do it otherwise. I'm open to suggestions, though. :-)
> > >
> > > I didn't think to try running a regular program without plugin calls to see if it would do the self start. I'll try that first to maybe narrow down things a bit.
> > >
> > > Thanks,
> > >
> > > Mike
> > >
> > > On Jul 29, 2012, at 5:19 PM, Tom Kerekes <tk@> wrote:
> > >
> > > > Hi Mike,
> > > >
> > > > Not sure why mine didn't work. But anyways yours is good.
> > > >
> > > > I think if you remove the line:
> > > >
> > > > DoTap(-ZDist, RetractRate, TPI);
> > > >
> > > > Then it will do a rapid move back in Z rather than an "unTap" type of move so it will be faster.
> > > >
> > > > I haven't seen that weird self start of Mach3. Hard to imagine how our Plugin could be doing that. Please try the lockdown version to see if it persists.
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > > > From: michaelthomasn <michaelniksch@>
> > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > Sent: Saturday, July 28, 2012 11:31 AM
> > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > >
> > > >
> > > > Tom,
> > > >
> > > > I made the adjustments you suggested to the notifytap program, and I could not get it to run the tap sequence. It would position itself in preparation, then just skip over the tap part and move on to the code after.
> > > >
> > > > I fiddled around with it and just ended up adding some lines in the c program to do the retract. It seems to work ok. I uploaded the c prog and my XML to my folder. Could you let me know if it is an acceptable way to do the retract?
> > > >
> > > > Also, an odd thing happens when using the edit button in Mach. I press the button, and it brings up the txt file. I make my adjustment, save it, and when I close the file the program immediately runs in mach without my consent. If I hit the emergency stop, the program stops.....but when I re-initialize it will start again where it was when I hit the E-stop. I wonder if this is just some weird anomaly in MachTurn. I am using 3.043.062....because I heard that the lockdown version had problems in Turn. Maybe I should try the lockdown.
> > > >
> > > > Any ideas on that?
> > > >
> > > > Thanks,
> > > >
> > > > Mike
> > > >
> > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > >
> > > > > Tom,
> > > > >
> > > > > Yes, adding code before and after should be fine. I will remove the lines you suggested and give it a go Monday morning.
> > > > >
> > > > > Thanks very much,
> > > > >
> > > > > Mike
> > > > >
> > > > > On Jul 27, 2012, at 5:16 PM, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > > Hi Mike,
> > > > > >
> > > > > > I would just add the X plunge in GCode before doing the Rigid Tap operation. Shouldn't that work for you? That might delay a bit after the X plunge before the Spindle starts rotating. Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point.
> > > > > >
> > > > > > To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program.
> > > > > >
> > > > > > // retract fully
> > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > and also add the +ZDist as shown below
> > > > > >
> > > > > > Delay_sec(1.0);
> > > > > > Move(ZAXIS,Z0+ZDist); // move to where we ended up
> > > > > > while (!CheckDone(ZAXIS)) ;
> > > > > > Let me know how much of this works :}
> > > > > >
> > > > > > TK
> > > > > >
> > > > > >
> > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > Sent: Friday, July 27, 2012 1:35 PM
> > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > >
> > > > > >
> > > > > > Tom,
> > > > > >
> > > > > > I mean I did not set up the spindle as a motor output in Mach.
> > > > > >
> > > > > > I copied over the rigid tapping script and put the proper c program into the plugin and had it rigid tapping in air on the grinder. It looked like it should, and I didn't get any error messages.
> > > > > >
> > > > > > If the machine will tap without any encoder following error at 700rpm, then I feel like it should thread grind at 1 rpm without trouble...lol.
> > > > > >
> > > > > > So after looking over the c program for the rigid tapping, I must admit that there is a fair amount of stuff I don't follow and I need some help to modify it to thread grind.
> > > > > >
> > > > > > I basically need to do exactly what the rigid tap does in z and spindle movement, but add a plunge in x (Lathe setup) at the beginning of the sequence and a retract in x at the end of the thread before the rewind. Does that make sense the way I described it?
> > > > > >
> > > > > > Actually, the rewind (tap retract) is not necessary, I just need to be able to run the sequence over and over from the same start point on the spindle and z for multiple passes.
> > > > > >
> > > > > > Let me know what you think.
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Mike
> > > > > >
> > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Mike,
> > > > > > > ÃÆ'ââ¬Å¡
> > > > > > > I'm not sure I follow all that.ÃÆ'ââ¬Å¡ But if your happy, I'm happy.
> > > > > > > ÃÆ'ââ¬Å¡
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > Sent: Friday, July 27, 2012 8:09 AM
> > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > >
> > > > > > >
> > > > > > > ÃÆ'ââ¬Å¡
> > > > > > >
> > > > > > > Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.
> > > > > > >
> > > > > > > I hope that is right.
> > > > > > >
> > > > > > > Its working right so far.
> > > > > > >
> > > > > > > On to the rigid tap journey.
> > > > > > >
> > > > > > > Thanks,
> > > > > > >
> > > > > > > Mike
> > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > > > >
> > > > > > > >
> > > > > > > > Oh....Ok. It works great as far as direction goes, now.
> > > > > > > >
> > > > > > > > I don't know what I saved/sent.....I thought it was right, but obviously not.
> > > > > > > >
> > > > > > > > Accurate speed is now what I'm after.
> > > > > > > >
> > > > > > > > My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
> > > > > > > >
> > > > > > > > So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
> > > > > > > >
> > > > > > > > How do I set up the spindle in Mach motor config?
> > > > > > > >
> > > > > > > > What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
> > > > > > > >
> > > > > > > > Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
> > > > > > > >
> > > > > > > > I messed with it for a bit but didn't seem to make much headway.
> > > > > > > >
> > > > > > > > Thanks again,
> > > > > > > >
> > > > > > > > Mike
> > > > > > > >
> > > > > > > >
> > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Hi Mike,
> > > > > > > > > ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡
> > > > > > > > > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ Switch relays or whatever.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ I assume your spindle can jog + and - like an servo?ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ I've uploaded a file to your folder that may work for you.
> > > > > > > > > ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡
> > > > > > > > > The XML file doesn't seem to have any Dynomotion Configuration in it.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ Did you upload the right file?ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ Did you save the Mach3 Settings?
> > > > > > > > > ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡
> > > > > > > > > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> > > > > > > > > ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡
> > > > > > > > > Let me know haw far this gets you.
> > > > > > > > > ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡
> > > > > > > > > Regards
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > Sent: Thursday, July 26, 2012 3:12 PM
> > > > > > > > > Subject: [DynoMotion] Mach 3 Spindle struggle
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡
> > > > > > > > > Tom,
> > > > > > > > >
> > > > > > > > > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> > > > > > > > >
> > > > > > > > > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> > > > > > > > >
> > > > > > > > > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> > > > > > > > >
> > > > > > > > > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> > > > > > > > >
> > > > > > > > > I have attached my XML and spindle prog in my folder.
> > > > > > > > >
> > > > > > > > > Please help.....I've tried most everything.
> > > > > > > > >
> > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > > > > > > >
> > > > > > > > > Mike
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 5483 |
From: michaelthomasn |
Date: 7/30/2012 |
Subject: Re: Mach 3 Spindle struggle |
Tom, is there any way to make a feedhold while M84 (thread grind for me) is executing?
I have feedhold in mach trigger virtual bit 50, and start clears the bit. Then a watchdog in Kflop looks for bit 50 to stop or resume coordinated motion. This seems to work fine during gcode, but does not during the M84.
Thanks,
Mike
--- In DynoMotion@yahoogroups.com, "michaelthomasn" <michaelniksch@...> wrote:
>
> You got it......thanks again.
>
> Mike
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Mike,
> > Â
> > I think whenever Mach3 generates the tool path it Interprets through all the GCode which calls the M codes and triggers rigid tapping and so forth.
> > Â
> > Try the Mach3 | Config | General Config | Ignore M Calls while loading option.
> > Â
> > Otherwise there may be a way to tell if it is a tool path regeneration inside the M84 and skip doing anything.
> > Â
> > Regards
> > TKÂ
> >
> > From: michaelthomasn <michaelniksch@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Monday, July 30, 2012 10:22 AM
> > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> >
> >
> > Â
> > Ok....the problem seems to stem from mach trying to generate the toolpath. I have just been pressing cancel. It wants to hang up on the m84.
> >
> > If I got to the top of the screen and select view/regen toolpath....the same thing will happen.
> >
> > Ideas???
> >
> > Mike
> >
> > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > >
> > > Tom,
> > >
> > > I installed the lockdown version. It still does the same things. If I use the load button, or the edit button to open or modify a program with a notify plugin......it starts on its own on return to mach.
> > >
> > > It does not do this with a regular g code pgm.
> > >
> > > I am using the turn version with an different screenset.
> > > ??????
> > >
> > > Mike
> > >
> > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > >
> > > > Tom,
> > > >
> > > > Yours may not have worked because I may have not followed your directions properly.....lol. It let me know where to look, though.
> > > >
> > > > I left the DoTap(-ZDist, RetractRate, TPI); in because I need the spindle axis to return to exactly where it started when doing the multiple passes necessary for the operation and I didn't know how to do it otherwise. I'm open to suggestions, though. :-)
> > > >
> > > > I didn't think to try running a regular program without plugin calls to see if it would do the self start. I'll try that first to maybe narrow down things a bit.
> > > >
> > > > Thanks,
> > > >
> > > > Mike
> > > >
> > > > On Jul 29, 2012, at 5:19 PM, Tom Kerekes <tk@> wrote:
> > > >
> > > > > Hi Mike,
> > > > >
> > > > > Not sure why mine didn't work. But anyways yours is good.
> > > > >
> > > > > I think if you remove the line:
> > > > >
> > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > >
> > > > > Then it will do a rapid move back in Z rather than an "unTap" type of move so it will be faster.
> > > > >
> > > > > I haven't seen that weird self start of Mach3. Hard to imagine how our Plugin could be doing that. Please try the lockdown version to see if it persists.
> > > > >
> > > > > Regards
> > > > > TK
> > > > >
> > > > >
> > > > > From: michaelthomasn <michaelniksch@>
> > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > Sent: Saturday, July 28, 2012 11:31 AM
> > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > >
> > > > >
> > > > > Tom,
> > > > >
> > > > > I made the adjustments you suggested to the notifytap program, and I could not get it to run the tap sequence. It would position itself in preparation, then just skip over the tap part and move on to the code after.
> > > > >
> > > > > I fiddled around with it and just ended up adding some lines in the c program to do the retract. It seems to work ok. I uploaded the c prog and my XML to my folder. Could you let me know if it is an acceptable way to do the retract?
> > > > >
> > > > > Also, an odd thing happens when using the edit button in Mach. I press the button, and it brings up the txt file. I make my adjustment, save it, and when I close the file the program immediately runs in mach without my consent. If I hit the emergency stop, the program stops.....but when I re-initialize it will start again where it was when I hit the E-stop. I wonder if this is just some weird anomaly in MachTurn. I am using 3.043.062....because I heard that the lockdown version had problems in Turn. Maybe I should try the lockdown.
> > > > >
> > > > > Any ideas on that?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Mike
> > > > >
> > > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > > >
> > > > > > Tom,
> > > > > >
> > > > > > Yes, adding code before and after should be fine. I will remove the lines you suggested and give it a go Monday morning.
> > > > > >
> > > > > > Thanks very much,
> > > > > >
> > > > > > Mike
> > > > > >
> > > > > > On Jul 27, 2012, at 5:16 PM, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > > Hi Mike,
> > > > > > >
> > > > > > > I would just add the X plunge in GCode before doing the Rigid Tap operation. Shouldn't that work for you? That might delay a bit after the X plunge before the Spindle starts rotating. Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point.
> > > > > > >
> > > > > > > To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program.
> > > > > > >
> > > > > > > // retract fully
> > > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > > and also add the +ZDist as shown below
> > > > > > >
> > > > > > > Delay_sec(1.0);
> > > > > > > Move(ZAXIS,Z0+ZDist); // move to where we ended up
> > > > > > > while (!CheckDone(ZAXIS)) ;
> > > > > > > Let me know how much of this works :}
> > > > > > >
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > Sent: Friday, July 27, 2012 1:35 PM
> > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > >
> > > > > > >
> > > > > > > Tom,
> > > > > > >
> > > > > > > I mean I did not set up the spindle as a motor output in Mach.
> > > > > > >
> > > > > > > I copied over the rigid tapping script and put the proper c program into the plugin and had it rigid tapping in air on the grinder. It looked like it should, and I didn't get any error messages.
> > > > > > >
> > > > > > > If the machine will tap without any encoder following error at 700rpm, then I feel like it should thread grind at 1 rpm without trouble...lol.
> > > > > > >
> > > > > > > So after looking over the c program for the rigid tapping, I must admit that there is a fair amount of stuff I don't follow and I need some help to modify it to thread grind.
> > > > > > >
> > > > > > > I basically need to do exactly what the rigid tap does in z and spindle movement, but add a plunge in x (Lathe setup) at the beginning of the sequence and a retract in x at the end of the thread before the rewind. Does that make sense the way I described it?
> > > > > > >
> > > > > > > Actually, the rewind (tap retract) is not necessary, I just need to be able to run the sequence over and over from the same start point on the spindle and z for multiple passes.
> > > > > > >
> > > > > > > Let me know what you think.
> > > > > > >
> > > > > > > Thanks,
> > > > > > >
> > > > > > > Mike
> > > > > > >
> > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Mike,
> > > > > > > > ÃÆ'ââ¬Å¡
> > > > > > > > I'm not sure I follow all that.ÃÆ'ââ¬Å¡ But if your happy, I'm happy.
> > > > > > > > ÃÆ'ââ¬Å¡
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > Sent: Friday, July 27, 2012 8:09 AM
> > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > >
> > > > > > > >
> > > > > > > > ÃÆ'ââ¬Å¡
> > > > > > > >
> > > > > > > > Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.
> > > > > > > >
> > > > > > > > I hope that is right.
> > > > > > > >
> > > > > > > > Its working right so far.
> > > > > > > >
> > > > > > > > On to the rigid tap journey.
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > >
> > > > > > > > Mike
> > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Oh....Ok. It works great as far as direction goes, now.
> > > > > > > > >
> > > > > > > > > I don't know what I saved/sent.....I thought it was right, but obviously not.
> > > > > > > > >
> > > > > > > > > Accurate speed is now what I'm after.
> > > > > > > > >
> > > > > > > > > My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
> > > > > > > > >
> > > > > > > > > So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
> > > > > > > > >
> > > > > > > > > How do I set up the spindle in Mach motor config?
> > > > > > > > >
> > > > > > > > > What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
> > > > > > > > >
> > > > > > > > > Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
> > > > > > > > >
> > > > > > > > > I messed with it for a bit but didn't seem to make much headway.
> > > > > > > > >
> > > > > > > > > Thanks again,
> > > > > > > > >
> > > > > > > > > Mike
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > > Hi Mike,
> > > > > > > > > > ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡
> > > > > > > > > > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ Switch relays or whatever.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ I assume your spindle can jog + and - like an servo?ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ I've uploaded a file to your folder that may work for you.
> > > > > > > > > > ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡
> > > > > > > > > > The XML file doesn't seem to have any Dynomotion Configuration in it.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ Did you upload the right file?ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ Did you save the Mach3 Settings?
> > > > > > > > > > ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡
> > > > > > > > > > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> > > > > > > > > > ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡
> > > > > > > > > > Let me know haw far this gets you.
> > > > > > > > > > ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡
> > > > > > > > > > Regards
> > > > > > > > > > TK
> > > > > > > > > >
> > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > Sent: Thursday, July 26, 2012 3:12 PM
> > > > > > > > > > Subject: [DynoMotion] Mach 3 Spindle struggle
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡
> > > > > > > > > > Tom,
> > > > > > > > > >
> > > > > > > > > > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> > > > > > > > > >
> > > > > > > > > > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> > > > > > > > > >
> > > > > > > > > > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> > > > > > > > > >
> > > > > > > > > > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> > > > > > > > > >
> > > > > > > > > > I have attached my XML and spindle prog in my folder.
> > > > > > > > > >
> > > > > > > > > > Please help.....I've tried most everything.
> > > > > > > > > >
> > > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > > > > > > > >
> > > > > > > > > > Mike
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 5484 |
From: Tom Kerekes |
Date: 7/30/2012 |
Subject: Re: Mach 3 Spindle struggle |
Hi Mike,
Feed hold in the middle of Rigid tapping? You want everything :}
Rigid Tapping is different than normal tapping as the Z is slaved to the Spindle. I think we would need to stop the Spindle. I've tried to add this to the C code and uploaded the file to your folder:
It looks for your virtual bit and Jogs the Spindel Axis to zero speed whenever the virtual bit transitions high. It resumes the commanded spindle motion when the virtual bit transitions low.
Hopefully this might work.
BTW there are two techniques for rigid tapping. The Z motion can be slaved to the commanded motion of the Spindle or it can be slaved to the actual position of the Spindle. There are advantages and disadvantages to both techniques. Currently your C progam is doing the first technique. If your accuracy is good I would leave this alone. But just wanted to point this out as an option.
Regards
TK
Group: DynoMotion |
Message: 5485 |
From: michaelthomasn |
Date: 7/30/2012 |
Subject: Re: Mach 3 Spindle struggle |
Great.....thanks a lot. I will give it a try tomorrow.
As far as the two techniques are concerned....I would look for whatever is the most accurate. I didn't realize there was a choice.
Is it a pain to do the second technique?
The owner of this shop makes ballscrews and very high precision shafts that are checked by cmm. The idea was to make this machine dedicated for thread grinding carbide. The one thing that is in our favor is that the spindle moves very slow when thread grinding.
Like 1 rpm or less....so I think everything will have an easier time tracking at the slow speeds. Even the multi start threads seldom have a pitch over 5mm.
The machine has proven itself mechanically capable of maintaining .00005" in standard cylindrical grinding.....so as much accuracy that can be afforded electronically would be ideal.
Again.....the thing moves really slow.
Tell me what you think.
Thanks again,
Mike
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Mike,
> Â
> Feed hold in the middle of Rigid tapping? You want everything :}
> Â
> Rigid Tapping is different than normal tapping as the Z is slaved to the Spindle. I think we would need to stop the Spindle. I've tried to add this to the C code and uploaded the file to your folder:
> Â
> http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> Â
> It looks for your virtual bit and Jogs the Spindel Axis to zero speed whenever the virtual bit transitions high. It resumes the commanded spindle motion when the virtual bit transitions low.
> Â
> Hopefully this might work.
> Â
> BTW there are two techniques for rigid tapping. The Z motion can be slaved to the commanded motion of the Spindle or it can be slaved to the actual position of the Spindle. There are advantages and disadvantages to both techniques. Currently your C progam is doing the first technique. If your accuracy is good I would leave this alone. But just wanted to point this out as an option.
> Â
> Regards
> TK
> Â
> Â
> From: michaelthomasn <michaelniksch@...>
> To: DynoMotion@yahoogroups.com
> Sent: Monday, July 30, 2012 2:27 PM
> Subject: [DynoMotion] Re: Mach 3 Spindle struggle
>
>
> Â
> Tom, is there any way to make a feedhold while M84 (thread grind for me) is executing?
>
> I have feedhold in mach trigger virtual bit 50, and start clears the bit. Then a watchdog in Kflop looks for bit 50 to stop or resume coordinated motion. This seems to work fine during gcode, but does not during the M84.
>
> Thanks,
>
> Mike
>
> --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> >
> > You got it......thanks again.
> >
> > Mike
> >
> > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Mike,
> > > ÃÂ
> > > I think whenever Mach3 generates the tool path it Interprets through all the GCode which calls the M codes and triggers rigid tapping and so forth.
> > > ÃÂ
> > > Try the Mach3 | Config | General Config | IgnoreÃÂ M Calls while loading option.
> > > ÃÂ
> > > Otherwise there may be a way to tell if it is a tool path regeneration inside the M84 and skip doing anything.
> > > ÃÂ
> > > Regards
> > > TKÃÂ
> > >
> > > From: michaelthomasn <michaelniksch@>
> > > To: mailto:DynoMotion%40yahoogroups.com
> > > Sent: Monday, July 30, 2012 10:22 AM
> > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > >
> > >
> > > ÃÂ
> > > Ok....the problem seems to stem from mach trying to generate the toolpath. I have just been pressing cancel. It wants to hang up on the m84.
> > >
> > > If I got to the top of the screen and select view/regen toolpath....the same thing will happen.
> > >
> > > Ideas???
> > >
> > > Mike
> > >
> > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > >
> > > > Tom,
> > > >
> > > > I installed the lockdown version. It still does the same things. If I use the load button, or the edit button to open or modify a program with a notify plugin......it starts on its own on return to mach.
> > > >
> > > > It does not do this with a regular g code pgm.
> > > >
> > > > I am using the turn version with an different screenset.
> > > > ??????
> > > >
> > > > Mike
> > > >
> > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > >
> > > > > Tom,
> > > > >
> > > > > Yours may not have worked because I may have not followed your directions properly.....lol. It let me know where to look, though.
> > > > >
> > > > > I left the DoTap(-ZDist, RetractRate, TPI); in because I need the spindle axis to return to exactly where it started when doing the multiple passes necessary for the operation and I didn't know how to do it otherwise. I'm open to suggestions, though. :-)
> > > > >
> > > > > I didn't think to try running a regular program without plugin calls to see if it would do the self start. I'll try that first to maybe narrow down things a bit.
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Mike
> > > > >
> > > > > On Jul 29, 2012, at 5:19 PM, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > > Hi Mike,
> > > > > >
> > > > > > Not sure why mine didn't work. But anyways yours is good.
> > > > > >
> > > > > > I think if you remove the line:
> > > > > >
> > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > >
> > > > > > Then it will do a rapid move back in Z rather than an "unTap" type of move so it will be faster.
> > > > > >
> > > > > > I haven't seen that weird self start of Mach3. Hard to imagine how our Plugin could be doing that. Please try the lockdown version to see if it persists.
> > > > > >
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > >
> > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > Sent: Saturday, July 28, 2012 11:31 AM
> > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > >
> > > > > >
> > > > > > Tom,
> > > > > >
> > > > > > I made the adjustments you suggested to the notifytap program, and I could not get it to run the tap sequence. It would position itself in preparation, then just skip over the tap part and move on to the code after.
> > > > > >
> > > > > > I fiddled around with it and just ended up adding some lines in the c program to do the retract. It seems to work ok. I uploaded the c prog and my XML to my folder. Could you let me know if it is an acceptable way to do the retract?
> > > > > >
> > > > > > Also, an odd thing happens when using the edit button in Mach. I press the button, and it brings up the txt file. I make my adjustment, save it, and when I close the file the program immediately runs in mach without my consent. If I hit the emergency stop, the program stops.....but when I re-initialize it will start again where it was when I hit the E-stop. I wonder if this is just some weird anomaly in MachTurn. I am using 3.043.062....because I heard that the lockdown version had problems in Turn. Maybe I should try the lockdown.
> > > > > >
> > > > > > Any ideas on that?
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Mike
> > > > > >
> > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > > > >
> > > > > > > Tom,
> > > > > > >
> > > > > > > Yes, adding code before and after should be fine. I will remove the lines you suggested and give it a go Monday morning.
> > > > > > >
> > > > > > > Thanks very much,
> > > > > > >
> > > > > > > Mike
> > > > > > >
> > > > > > > On Jul 27, 2012, at 5:16 PM, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > > Hi Mike,
> > > > > > > >
> > > > > > > > I would just add the X plunge in GCode before doing the Rigid Tap operation. Shouldn't that work for you? That might delay a bit after the X plunge before the Spindle starts rotating. Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point.
> > > > > > > >
> > > > > > > > To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program.
> > > > > > > >
> > > > > > > > // retract fully
> > > > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > > > and also add the +ZDist as shown below
> > > > > > > >
> > > > > > > > Delay_sec(1.0);
> > > > > > > > Move(ZAXIS,Z0+ZDist); // move to where we ended up
> > > > > > > > while (!CheckDone(ZAXIS)) ;
> > > > > > > > Let me know how much of this works :}
> > > > > > > >
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > Sent: Friday, July 27, 2012 1:35 PM
> > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > >
> > > > > > > >
> > > > > > > > Tom,
> > > > > > > >
> > > > > > > > I mean I did not set up the spindle as a motor output in Mach.
> > > > > > > >
> > > > > > > > I copied over the rigid tapping script and put the proper c program into the plugin and had it rigid tapping in air on the grinder. It looked like it should, and I didn't get any error messages.
> > > > > > > >
> > > > > > > > If the machine will tap without any encoder following error at 700rpm, then I feel like it should thread grind at 1 rpm without trouble...lol.
> > > > > > > >
> > > > > > > > So after looking over the c program for the rigid tapping, I must admit that there is a fair amount of stuff I don't follow and I need some help to modify it to thread grind.
> > > > > > > >
> > > > > > > > I basically need to do exactly what the rigid tap does in z and spindle movement, but add a plunge in x (Lathe setup) at the beginning of the sequence and a retract in x at the end of the thread before the rewind. Does that make sense the way I described it?
> > > > > > > >
> > > > > > > > Actually, the rewind (tap retract) is not necessary, I just need to be able to run the sequence over and over from the same start point on the spindle and z for multiple passes.
> > > > > > > >
> > > > > > > > Let me know what you think.
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > >
> > > > > > > > Mike
> > > > > > > >
> > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Hi Mike,
> > > > > > > > > ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > I'm not sure I follow all that.ÃÆ'Ã'âââ¬Ã
¡ But if your happy, I'm happy.
> > > > > > > > > ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > Regards
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > Sent: Friday, July 27, 2012 8:09 AM
> > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > >
> > > > > > > > > Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.
> > > > > > > > >
> > > > > > > > > I hope that is right.
> > > > > > > > >
> > > > > > > > > Its working right so far.
> > > > > > > > >
> > > > > > > > > On to the rigid tap journey.
> > > > > > > > >
> > > > > > > > > Thanks,
> > > > > > > > >
> > > > > > > > > Mike
> > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Oh....Ok. It works great as far as direction goes, now.
> > > > > > > > > >
> > > > > > > > > > I don't know what I saved/sent.....I thought it was right, but obviously not.
> > > > > > > > > >
> > > > > > > > > > Accurate speed is now what I'm after.
> > > > > > > > > >
> > > > > > > > > > My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
> > > > > > > > > >
> > > > > > > > > > So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
> > > > > > > > > >
> > > > > > > > > > How do I set up the spindle in Mach motor config?
> > > > > > > > > >
> > > > > > > > > > What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
> > > > > > > > > >
> > > > > > > > > > Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
> > > > > > > > > >
> > > > > > > > > > I messed with it for a bit but didn't seem to make much headway.
> > > > > > > > > >
> > > > > > > > > > Thanks again,
> > > > > > > > > >
> > > > > > > > > > Mike
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Hi Mike,
> > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > > > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ Switch relays or whatever.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ I assume your spindle can jog + and - like an servo?ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ I've uploaded a file to your folder that may work for you.
> > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > > > The XML file doesn't seem to have any Dynomotion Configuration in it.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ Did you upload the right file?ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ Did you save the Mach3 Settings?
> > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > > > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > > > Let me know haw far this gets you.
> > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > > > Regards
> > > > > > > > > > > TK
> > > > > > > > > > >
> > > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > > Sent: Thursday, July 26, 2012 3:12 PM
> > > > > > > > > > > Subject: [DynoMotion] Mach 3 Spindle struggle
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > > > Tom,
> > > > > > > > > > >
> > > > > > > > > > > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> > > > > > > > > > >
> > > > > > > > > > > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> > > > > > > > > > >
> > > > > > > > > > > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> > > > > > > > > > >
> > > > > > > > > > > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> > > > > > > > > > >
> > > > > > > > > > > I have attached my XML and spindle prog in my folder.
> > > > > > > > > > >
> > > > > > > > > > > Please help.....I've tried most everything.
> > > > > > > > > > >
> > > > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > > > > > > > > >
> > > > > > > > > > > Mike
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 5486 |
From: michaelthomasn |
Date: 7/31/2012 |
Subject: Re: Mach 3 Spindle struggle |
Tom
I just finished trying it out. It does not stop.....the really odd thing is that it actually rolls on by the set tap depth and keeps on tapping until I stop it with the Estop button. I verified that bit 50 is being set when I push feedhold.
Mike
--- In DynoMotion@yahoogroups.com, "michaelthomasn" <michaelniksch@...> wrote:
>
> Great.....thanks a lot. I will give it a try tomorrow.
>
> As far as the two techniques are concerned....I would look for whatever is the most accurate. I didn't realize there was a choice.
>
> Is it a pain to do the second technique?
>
> The owner of this shop makes ballscrews and very high precision shafts that are checked by cmm. The idea was to make this machine dedicated for thread grinding carbide. The one thing that is in our favor is that the spindle moves very slow when thread grinding.
> Like 1 rpm or less....so I think everything will have an easier time tracking at the slow speeds. Even the multi start threads seldom have a pitch over 5mm.
>
> The machine has proven itself mechanically capable of maintaining .00005" in standard cylindrical grinding.....so as much accuracy that can be afforded electronically would be ideal.
>
> Again.....the thing moves really slow.
>
> Tell me what you think.
>
> Thanks again,
>
> Mike
>
>
>
>
>
>
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Mike,
> > Â
> > Feed hold in the middle of Rigid tapping? You want everything :}
> > Â
> > Rigid Tapping is different than normal tapping as the Z is slaved to the Spindle. I think we would need to stop the Spindle. I've tried to add this to the C code and uploaded the file to your folder:
> > Â
> > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > Â
> > It looks for your virtual bit and Jogs the Spindel Axis to zero speed whenever the virtual bit transitions high. It resumes the commanded spindle motion when the virtual bit transitions low.
> > Â
> > Hopefully this might work.
> > Â
> > BTW there are two techniques for rigid tapping. The Z motion can be slaved to the commanded motion of the Spindle or it can be slaved to the actual position of the Spindle. There are advantages and disadvantages to both techniques. Currently your C progam is doing the first technique. If your accuracy is good I would leave this alone. But just wanted to point this out as an option.
> > Â
> > Regards
> > TK
> > Â
> > Â
> > From: michaelthomasn <michaelniksch@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Monday, July 30, 2012 2:27 PM
> > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> >
> >
> > Â
> > Tom, is there any way to make a feedhold while M84 (thread grind for me) is executing?
> >
> > I have feedhold in mach trigger virtual bit 50, and start clears the bit. Then a watchdog in Kflop looks for bit 50 to stop or resume coordinated motion. This seems to work fine during gcode, but does not during the M84.
> >
> > Thanks,
> >
> > Mike
> >
> > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > >
> > > You got it......thanks again.
> > >
> > > Mike
> > >
> > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Mike,
> > > > ÃÂ
> > > > I think whenever Mach3 generates the tool path it Interprets through all the GCode which calls the M codes and triggers rigid tapping and so forth.
> > > > ÃÂ
> > > > Try the Mach3 | Config | General Config | IgnoreÃÂ M Calls while loading option.
> > > > ÃÂ
> > > > Otherwise there may be a way to tell if it is a tool path regeneration inside the M84 and skip doing anything.
> > > > ÃÂ
> > > > Regards
> > > > TKÃÂ
> > > >
> > > > From: michaelthomasn <michaelniksch@>
> > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > Sent: Monday, July 30, 2012 10:22 AM
> > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > >
> > > >
> > > > ÃÂ
> > > > Ok....the problem seems to stem from mach trying to generate the toolpath. I have just been pressing cancel. It wants to hang up on the m84.
> > > >
> > > > If I got to the top of the screen and select view/regen toolpath....the same thing will happen.
> > > >
> > > > Ideas???
> > > >
> > > > Mike
> > > >
> > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > >
> > > > > Tom,
> > > > >
> > > > > I installed the lockdown version. It still does the same things. If I use the load button, or the edit button to open or modify a program with a notify plugin......it starts on its own on return to mach.
> > > > >
> > > > > It does not do this with a regular g code pgm.
> > > > >
> > > > > I am using the turn version with an different screenset.
> > > > > ??????
> > > > >
> > > > > Mike
> > > > >
> > > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > > >
> > > > > > Tom,
> > > > > >
> > > > > > Yours may not have worked because I may have not followed your directions properly.....lol. It let me know where to look, though.
> > > > > >
> > > > > > I left the DoTap(-ZDist, RetractRate, TPI); in because I need the spindle axis to return to exactly where it started when doing the multiple passes necessary for the operation and I didn't know how to do it otherwise. I'm open to suggestions, though. :-)
> > > > > >
> > > > > > I didn't think to try running a regular program without plugin calls to see if it would do the self start. I'll try that first to maybe narrow down things a bit.
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Mike
> > > > > >
> > > > > > On Jul 29, 2012, at 5:19 PM, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > > Hi Mike,
> > > > > > >
> > > > > > > Not sure why mine didn't work. But anyways yours is good.
> > > > > > >
> > > > > > > I think if you remove the line:
> > > > > > >
> > > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > >
> > > > > > > Then it will do a rapid move back in Z rather than an "unTap" type of move so it will be faster.
> > > > > > >
> > > > > > > I haven't seen that weird self start of Mach3. Hard to imagine how our Plugin could be doing that. Please try the lockdown version to see if it persists.
> > > > > > >
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > Sent: Saturday, July 28, 2012 11:31 AM
> > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > >
> > > > > > >
> > > > > > > Tom,
> > > > > > >
> > > > > > > I made the adjustments you suggested to the notifytap program, and I could not get it to run the tap sequence. It would position itself in preparation, then just skip over the tap part and move on to the code after.
> > > > > > >
> > > > > > > I fiddled around with it and just ended up adding some lines in the c program to do the retract. It seems to work ok. I uploaded the c prog and my XML to my folder. Could you let me know if it is an acceptable way to do the retract?
> > > > > > >
> > > > > > > Also, an odd thing happens when using the edit button in Mach. I press the button, and it brings up the txt file. I make my adjustment, save it, and when I close the file the program immediately runs in mach without my consent. If I hit the emergency stop, the program stops.....but when I re-initialize it will start again where it was when I hit the E-stop. I wonder if this is just some weird anomaly in MachTurn. I am using 3.043.062....because I heard that the lockdown version had problems in Turn. Maybe I should try the lockdown.
> > > > > > >
> > > > > > > Any ideas on that?
> > > > > > >
> > > > > > > Thanks,
> > > > > > >
> > > > > > > Mike
> > > > > > >
> > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > > > > >
> > > > > > > > Tom,
> > > > > > > >
> > > > > > > > Yes, adding code before and after should be fine. I will remove the lines you suggested and give it a go Monday morning.
> > > > > > > >
> > > > > > > > Thanks very much,
> > > > > > > >
> > > > > > > > Mike
> > > > > > > >
> > > > > > > > On Jul 27, 2012, at 5:16 PM, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > > Hi Mike,
> > > > > > > > >
> > > > > > > > > I would just add the X plunge in GCode before doing the Rigid Tap operation. Shouldn't that work for you? That might delay a bit after the X plunge before the Spindle starts rotating. Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point.
> > > > > > > > >
> > > > > > > > > To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program.
> > > > > > > > >
> > > > > > > > > // retract fully
> > > > > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > > > > and also add the +ZDist as shown below
> > > > > > > > >
> > > > > > > > > Delay_sec(1.0);
> > > > > > > > > Move(ZAXIS,Z0+ZDist); // move to where we ended up
> > > > > > > > > while (!CheckDone(ZAXIS)) ;
> > > > > > > > > Let me know how much of this works :}
> > > > > > > > >
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > Sent: Friday, July 27, 2012 1:35 PM
> > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Tom,
> > > > > > > > >
> > > > > > > > > I mean I did not set up the spindle as a motor output in Mach.
> > > > > > > > >
> > > > > > > > > I copied over the rigid tapping script and put the proper c program into the plugin and had it rigid tapping in air on the grinder. It looked like it should, and I didn't get any error messages.
> > > > > > > > >
> > > > > > > > > If the machine will tap without any encoder following error at 700rpm, then I feel like it should thread grind at 1 rpm without trouble...lol.
> > > > > > > > >
> > > > > > > > > So after looking over the c program for the rigid tapping, I must admit that there is a fair amount of stuff I don't follow and I need some help to modify it to thread grind.
> > > > > > > > >
> > > > > > > > > I basically need to do exactly what the rigid tap does in z and spindle movement, but add a plunge in x (Lathe setup) at the beginning of the sequence and a retract in x at the end of the thread before the rewind. Does that make sense the way I described it?
> > > > > > > > >
> > > > > > > > > Actually, the rewind (tap retract) is not necessary, I just need to be able to run the sequence over and over from the same start point on the spindle and z for multiple passes.
> > > > > > > > >
> > > > > > > > > Let me know what you think.
> > > > > > > > >
> > > > > > > > > Thanks,
> > > > > > > > >
> > > > > > > > > Mike
> > > > > > > > >
> > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > > Hi Mike,
> > > > > > > > > > ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > > I'm not sure I follow all that.ÃÆ'Ã'âââ¬Ã
¡ But if your happy, I'm happy.
> > > > > > > > > > ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > > Regards
> > > > > > > > > > TK
> > > > > > > > > >
> > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > Sent: Friday, July 27, 2012 8:09 AM
> > > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > >
> > > > > > > > > > Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.
> > > > > > > > > >
> > > > > > > > > > I hope that is right.
> > > > > > > > > >
> > > > > > > > > > Its working right so far.
> > > > > > > > > >
> > > > > > > > > > On to the rigid tap journey.
> > > > > > > > > >
> > > > > > > > > > Thanks,
> > > > > > > > > >
> > > > > > > > > > Mike
> > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > Oh....Ok. It works great as far as direction goes, now.
> > > > > > > > > > >
> > > > > > > > > > > I don't know what I saved/sent.....I thought it was right, but obviously not.
> > > > > > > > > > >
> > > > > > > > > > > Accurate speed is now what I'm after.
> > > > > > > > > > >
> > > > > > > > > > > My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
> > > > > > > > > > >
> > > > > > > > > > > So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
> > > > > > > > > > >
> > > > > > > > > > > How do I set up the spindle in Mach motor config?
> > > > > > > > > > >
> > > > > > > > > > > What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
> > > > > > > > > > >
> > > > > > > > > > > Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
> > > > > > > > > > >
> > > > > > > > > > > I messed with it for a bit but didn't seem to make much headway.
> > > > > > > > > > >
> > > > > > > > > > > Thanks again,
> > > > > > > > > > >
> > > > > > > > > > > Mike
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > > >
> > > > > > > > > > > > Hi Mike,
> > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > > > > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ Switch relays or whatever.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ I assume your spindle can jog + and - like an servo?ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ I've uploaded a file to your folder that may work for you.
> > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > > > > The XML file doesn't seem to have any Dynomotion Configuration in it.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ Did you upload the right file?ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ Did you save the Mach3 Settings?
> > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > > > > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > > > > Let me know haw far this gets you.
> > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > > > > Regards
> > > > > > > > > > > > TK
> > > > > > > > > > > >
> > > > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > > > Sent: Thursday, July 26, 2012 3:12 PM
> > > > > > > > > > > > Subject: [DynoMotion] Mach 3 Spindle struggle
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > > > > Tom,
> > > > > > > > > > > >
> > > > > > > > > > > > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> > > > > > > > > > > >
> > > > > > > > > > > > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> > > > > > > > > > > >
> > > > > > > > > > > > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> > > > > > > > > > > >
> > > > > > > > > > > > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> > > > > > > > > > > >
> > > > > > > > > > > > I have attached my XML and spindle prog in my folder.
> > > > > > > > > > > >
> > > > > > > > > > > > Please help.....I've tried most everything.
> > > > > > > > > > > >
> > > > > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > > > > > > > > > >
> > > > > > > > > > > > Mike
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 5487 |
From: michaelthomasn |
Date: 7/31/2012 |
Subject: Re: Mach 3 Spindle struggle |
Tom,
I wondered if it was some sort of conflict with the watchdog that I added to my init file. I removed the part looking for bit 50....but it still did the same thing.
I added my init file to my folder....studers35softspin.
Mike
--- In DynoMotion@yahoogroups.com, "michaelthomasn" <michaelniksch@...> wrote:
>
> Tom
>
> I just finished trying it out. It does not stop.....the really odd thing is that it actually rolls on by the set tap depth and keeps on tapping until I stop it with the Estop button. I verified that bit 50 is being set when I push feedhold.
>
> Mike
>
>
> --- In DynoMotion@yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> >
> > Great.....thanks a lot. I will give it a try tomorrow.
> >
> > As far as the two techniques are concerned....I would look for whatever is the most accurate. I didn't realize there was a choice.
> >
> > Is it a pain to do the second technique?
> >
> > The owner of this shop makes ballscrews and very high precision shafts that are checked by cmm. The idea was to make this machine dedicated for thread grinding carbide. The one thing that is in our favor is that the spindle moves very slow when thread grinding.
> > Like 1 rpm or less....so I think everything will have an easier time tracking at the slow speeds. Even the multi start threads seldom have a pitch over 5mm.
> >
> > The machine has proven itself mechanically capable of maintaining .00005" in standard cylindrical grinding.....so as much accuracy that can be afforded electronically would be ideal.
> >
> > Again.....the thing moves really slow.
> >
> > Tell me what you think.
> >
> > Thanks again,
> >
> > Mike
> >
> >
> >
> >
> >
> >
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Mike,
> > > Â
> > > Feed hold in the middle of Rigid tapping? You want everything :}
> > > Â
> > > Rigid Tapping is different than normal tapping as the Z is slaved to the Spindle. I think we would need to stop the Spindle. I've tried to add this to the C code and uploaded the file to your folder:
> > > Â
> > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > Â
> > > It looks for your virtual bit and Jogs the Spindel Axis to zero speed whenever the virtual bit transitions high. It resumes the commanded spindle motion when the virtual bit transitions low.
> > > Â
> > > Hopefully this might work.
> > > Â
> > > BTW there are two techniques for rigid tapping. The Z motion can be slaved to the commanded motion of the Spindle or it can be slaved to the actual position of the Spindle. There are advantages and disadvantages to both techniques. Currently your C progam is doing the first technique. If your accuracy is good I would leave this alone. But just wanted to point this out as an option.
> > > Â
> > > Regards
> > > TK
> > > Â
> > > Â
> > > From: michaelthomasn <michaelniksch@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Monday, July 30, 2012 2:27 PM
> > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > >
> > >
> > > Â
> > > Tom, is there any way to make a feedhold while M84 (thread grind for me) is executing?
> > >
> > > I have feedhold in mach trigger virtual bit 50, and start clears the bit. Then a watchdog in Kflop looks for bit 50 to stop or resume coordinated motion. This seems to work fine during gcode, but does not during the M84.
> > >
> > > Thanks,
> > >
> > > Mike
> > >
> > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > >
> > > > You got it......thanks again.
> > > >
> > > > Mike
> > > >
> > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Mike,
> > > > > ÃÂ
> > > > > I think whenever Mach3 generates the tool path it Interprets through all the GCode which calls the M codes and triggers rigid tapping and so forth.
> > > > > ÃÂ
> > > > > Try the Mach3 | Config | General Config | IgnoreÃÂ M Calls while loading option.
> > > > > ÃÂ
> > > > > Otherwise there may be a way to tell if it is a tool path regeneration inside the M84 and skip doing anything.
> > > > > ÃÂ
> > > > > Regards
> > > > > TKÃÂ
> > > > >
> > > > > From: michaelthomasn <michaelniksch@>
> > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > Sent: Monday, July 30, 2012 10:22 AM
> > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > >
> > > > >
> > > > > ÃÂ
> > > > > Ok....the problem seems to stem from mach trying to generate the toolpath. I have just been pressing cancel. It wants to hang up on the m84.
> > > > >
> > > > > If I got to the top of the screen and select view/regen toolpath....the same thing will happen.
> > > > >
> > > > > Ideas???
> > > > >
> > > > > Mike
> > > > >
> > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > >
> > > > > > Tom,
> > > > > >
> > > > > > I installed the lockdown version. It still does the same things. If I use the load button, or the edit button to open or modify a program with a notify plugin......it starts on its own on return to mach.
> > > > > >
> > > > > > It does not do this with a regular g code pgm.
> > > > > >
> > > > > > I am using the turn version with an different screenset.
> > > > > > ??????
> > > > > >
> > > > > > Mike
> > > > > >
> > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > > > >
> > > > > > > Tom,
> > > > > > >
> > > > > > > Yours may not have worked because I may have not followed your directions properly.....lol. It let me know where to look, though.
> > > > > > >
> > > > > > > I left the DoTap(-ZDist, RetractRate, TPI); in because I need the spindle axis to return to exactly where it started when doing the multiple passes necessary for the operation and I didn't know how to do it otherwise. I'm open to suggestions, though. :-)
> > > > > > >
> > > > > > > I didn't think to try running a regular program without plugin calls to see if it would do the self start. I'll try that first to maybe narrow down things a bit.
> > > > > > >
> > > > > > > Thanks,
> > > > > > >
> > > > > > > Mike
> > > > > > >
> > > > > > > On Jul 29, 2012, at 5:19 PM, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > > Hi Mike,
> > > > > > > >
> > > > > > > > Not sure why mine didn't work. But anyways yours is good.
> > > > > > > >
> > > > > > > > I think if you remove the line:
> > > > > > > >
> > > > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > > >
> > > > > > > > Then it will do a rapid move back in Z rather than an "unTap" type of move so it will be faster.
> > > > > > > >
> > > > > > > > I haven't seen that weird self start of Mach3. Hard to imagine how our Plugin could be doing that. Please try the lockdown version to see if it persists.
> > > > > > > >
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > Sent: Saturday, July 28, 2012 11:31 AM
> > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > >
> > > > > > > >
> > > > > > > > Tom,
> > > > > > > >
> > > > > > > > I made the adjustments you suggested to the notifytap program, and I could not get it to run the tap sequence. It would position itself in preparation, then just skip over the tap part and move on to the code after.
> > > > > > > >
> > > > > > > > I fiddled around with it and just ended up adding some lines in the c program to do the retract. It seems to work ok. I uploaded the c prog and my XML to my folder. Could you let me know if it is an acceptable way to do the retract?
> > > > > > > >
> > > > > > > > Also, an odd thing happens when using the edit button in Mach. I press the button, and it brings up the txt file. I make my adjustment, save it, and when I close the file the program immediately runs in mach without my consent. If I hit the emergency stop, the program stops.....but when I re-initialize it will start again where it was when I hit the E-stop. I wonder if this is just some weird anomaly in MachTurn. I am using 3.043.062....because I heard that the lockdown version had problems in Turn. Maybe I should try the lockdown.
> > > > > > > >
> > > > > > > > Any ideas on that?
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > >
> > > > > > > > Mike
> > > > > > > >
> > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > > > > > >
> > > > > > > > > Tom,
> > > > > > > > >
> > > > > > > > > Yes, adding code before and after should be fine. I will remove the lines you suggested and give it a go Monday morning.
> > > > > > > > >
> > > > > > > > > Thanks very much,
> > > > > > > > >
> > > > > > > > > Mike
> > > > > > > > >
> > > > > > > > > On Jul 27, 2012, at 5:16 PM, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > > Hi Mike,
> > > > > > > > > >
> > > > > > > > > > I would just add the X plunge in GCode before doing the Rigid Tap operation. Shouldn't that work for you? That might delay a bit after the X plunge before the Spindle starts rotating. Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point.
> > > > > > > > > >
> > > > > > > > > > To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program.
> > > > > > > > > >
> > > > > > > > > > // retract fully
> > > > > > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > > > > > and also add the +ZDist as shown below
> > > > > > > > > >
> > > > > > > > > > Delay_sec(1.0);
> > > > > > > > > > Move(ZAXIS,Z0+ZDist); // move to where we ended up
> > > > > > > > > > while (!CheckDone(ZAXIS)) ;
> > > > > > > > > > Let me know how much of this works :}
> > > > > > > > > >
> > > > > > > > > > TK
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > Sent: Friday, July 27, 2012 1:35 PM
> > > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Tom,
> > > > > > > > > >
> > > > > > > > > > I mean I did not set up the spindle as a motor output in Mach.
> > > > > > > > > >
> > > > > > > > > > I copied over the rigid tapping script and put the proper c program into the plugin and had it rigid tapping in air on the grinder. It looked like it should, and I didn't get any error messages.
> > > > > > > > > >
> > > > > > > > > > If the machine will tap without any encoder following error at 700rpm, then I feel like it should thread grind at 1 rpm without trouble...lol.
> > > > > > > > > >
> > > > > > > > > > So after looking over the c program for the rigid tapping, I must admit that there is a fair amount of stuff I don't follow and I need some help to modify it to thread grind.
> > > > > > > > > >
> > > > > > > > > > I basically need to do exactly what the rigid tap does in z and spindle movement, but add a plunge in x (Lathe setup) at the beginning of the sequence and a retract in x at the end of the thread before the rewind. Does that make sense the way I described it?
> > > > > > > > > >
> > > > > > > > > > Actually, the rewind (tap retract) is not necessary, I just need to be able to run the sequence over and over from the same start point on the spindle and z for multiple passes.
> > > > > > > > > >
> > > > > > > > > > Let me know what you think.
> > > > > > > > > >
> > > > > > > > > > Thanks,
> > > > > > > > > >
> > > > > > > > > > Mike
> > > > > > > > > >
> > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Hi Mike,
> > > > > > > > > > > ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > > > I'm not sure I follow all that.ÃÆ'Ã'âââ¬Ã
¡ But if your happy, I'm happy.
> > > > > > > > > > > ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > > > Regards
> > > > > > > > > > > TK
> > > > > > > > > > >
> > > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > > Sent: Friday, July 27, 2012 8:09 AM
> > > > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > > >
> > > > > > > > > > > Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.
> > > > > > > > > > >
> > > > > > > > > > > I hope that is right.
> > > > > > > > > > >
> > > > > > > > > > > Its working right so far.
> > > > > > > > > > >
> > > > > > > > > > > On to the rigid tap journey.
> > > > > > > > > > >
> > > > > > > > > > > Thanks,
> > > > > > > > > > >
> > > > > > > > > > > Mike
> > > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > Oh....Ok. It works great as far as direction goes, now.
> > > > > > > > > > > >
> > > > > > > > > > > > I don't know what I saved/sent.....I thought it was right, but obviously not.
> > > > > > > > > > > >
> > > > > > > > > > > > Accurate speed is now what I'm after.
> > > > > > > > > > > >
> > > > > > > > > > > > My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
> > > > > > > > > > > >
> > > > > > > > > > > > So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
> > > > > > > > > > > >
> > > > > > > > > > > > How do I set up the spindle in Mach motor config?
> > > > > > > > > > > >
> > > > > > > > > > > > What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
> > > > > > > > > > > >
> > > > > > > > > > > > Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
> > > > > > > > > > > >
> > > > > > > > > > > > I messed with it for a bit but didn't seem to make much headway.
> > > > > > > > > > > >
> > > > > > > > > > > > Thanks again,
> > > > > > > > > > > >
> > > > > > > > > > > > Mike
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > > > >
> > > > > > > > > > > > > Hi Mike,
> > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > > > > > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ Switch relays or whatever.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ I assume your spindle can jog + and - like an servo?ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ I've uploaded a file to your folder that may work for you.
> > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > > > > > The XML file doesn't seem to have any Dynomotion Configuration in it.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ Did you upload the right file?ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ Did you save the Mach3 Settings?
> > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > > > > > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > > > > > Let me know haw far this gets you.
> > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > > > > > Regards
> > > > > > > > > > > > > TK
> > > > > > > > > > > > >
> > > > > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > > > > Sent: Thursday, July 26, 2012 3:12 PM
> > > > > > > > > > > > > Subject: [DynoMotion] Mach 3 Spindle struggle
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡
> > > > > > > > > > > > > Tom,
> > > > > > > > > > > > >
> > > > > > > > > > > > > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> > > > > > > > > > > > >
> > > > > > > > > > > > > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> > > > > > > > > > > > >
> > > > > > > > > > > > > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> > > > > > > > > > > > >
> > > > > > > > > > > > > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> > > > > > > > > > > > >
> > > > > > > > > > > > > I have attached my XML and spindle prog in my folder.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Please help.....I've tried most everything.
> > > > > > > > > > > > >
> > > > > > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > > > > > > > > > > >
> > > > > > > > > > > > > Mike
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 5488 |
From: Tom Kerekes |
Date: 7/31/2012 |
Subject: Re: Mach 3 Spindle struggle |
Hi Mike,
I see a bug. The last state of the feedhold was not being saved. I uploaded a new file that saves the feedhold state. Please give that a try.
Regarding the two slaving techniques: slaving to actual Spindle position is probably the best. If there is no Spindle positioning error then it doesn't matter both techniques will be the same. Your requirements are very tight. To do a 5mm pitch thread with 1um accuracy the spindle position must be known to 1/5000th of a rev!
When slaving Z to actual Spindle Position the accuracy of the spindle servo theoretically doesn't matter because the Z axis will track how it actually moves.
However if the measured Spindle position is noisy, for example dithers +/- several counts due to vibration, then having the Z Servo attempt to track that may cause more harm than good. In such a case it may be better to just have the Z axis follow the perfectly accurate and smooth Spindle trajectory instead.
It is easy to switch between modes. Change the line:
MoveExp(ZAXIS,(chan[SPINDLE_AXIS].Dest-S0)*SlaveGain+Z0, TAU);
to:
MoveExp(ZAXIS,(chan[SPINDLE_AXIS].Position-S0)*SlaveGain+Z0, TAU);
Regards TK
Group: DynoMotion |
Message: 5489 |
From: michaelthomasn |
Date: 7/31/2012 |
Subject: Re: Mach 3 Spindle struggle |
Tom,
It does stop now.....but only for a second before it moves to the x retract. It then continues as if it were never stopped.
I wonder if it has anything to do with the lines I added for the x retract?
Mike
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Mike,
>
> I see a bug. The last state of the feedhold was not being saved. I uploaded a new file that saves the feedhold state. Please give that a try.
>
>
> Regarding the two slaving techniques: slaving to actual Spindle position is probably the best. If there is no Spindle positioning error then it doesn't matter both techniques will be the same. Your requirements are very tight. To do a 5mm pitch thread with 1um accuracy the spindle position must be known to 1/5000th of a rev!
>
> When slaving Z to actual Spindle Position the accuracy of the spindle servo theoretically doesn't matter because the Z axis will track how it actually moves. However if the measured Spindle position is noisy, for example dithers +/- several counts due to vibration, then having the Z Servo attempt to track that may cause more harm than good. In such a case it may be better to just have the Z axis follow the perfectly accurate and smooth Spindle trajectory instead.
>
> It is easy to switch between modes. Change the line:
>
>
> Â Â Â MoveExp(ZAXIS,(chan[SPINDLE_AXIS].Dest-S0)*SlaveGain+Z0, TAU);Â Â Â
>
>
> to:
>
> Â Â Â MoveExp(ZAXIS,(chan[SPINDLE_AXIS].Position-S0)*SlaveGain+Z0, TAU);
>
>
>
> Regards
> TK
>
>
> ________________________________
> From: michaelthomasn <michaelniksch@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, July 31, 2012 8:23 AM
> Subject: [DynoMotion] Re: Mach 3 Spindle struggle
>
>
> Â
> Tom
>
> I just finished trying it out. It does not stop.....the really odd thing is that it actually rolls on by the set tap depth and keeps on tapping until I stop it with the Estop button. I verified that bit 50 is being set when I push feedhold.
>
> Mike
>
> --- In DynoMotion@yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> >
> > Great.....thanks a lot. I will give it a try tomorrow.
> >
> > As far as the two techniques are concerned....I would look for whatever is the most accurate. I didn't realize there was a choice.
> >
> > Is it a pain to do the second technique?
> >
> > The owner of this shop makes ballscrews and very high precision shafts that are checked by cmm. The idea was to make this machine dedicated for thread grinding carbide. The one thing that is in our favor is that the spindle moves very slow when thread grinding.
> > Like 1 rpm or less....so I think everything will have an easier time tracking at the slow speeds. Even the multi start threads seldom have a pitch over 5mm.
> >
> > The machine has proven itself mechanically capable of maintaining .00005" in standard cylindrical grinding.....so as much accuracy that can be afforded electronically would be ideal.
> >
> > Again.....the thing moves really slow.
> >
> > Tell me what you think.
> >
> > Thanks again,
> >
> > Mike
> >
> >
> >
> >
> >
> >
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Mike,
> > > ÃÂ
> > > Feed hold in the middle of Rigid tapping?ÃÂ You want everything :}
> > > ÃÂ
> > > Rigid Tapping is different than normal tapping as the Z is slaved to the Spindle.ÃÂ I think we would need to stop the Spindle.ÃÂ I've tried to add this to the C code and uploaded the file to your folder:
> > > ÃÂ
> > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > ÃÂ
> > > It looks for your virtual bit and Jogs the Spindel Axis to zero speed whenever the virtual bit transitions high.ÃÂ It resumes the commanded spindle motion when the virtual bit transitions low.
> > > ÃÂ
> > > Hopefully this might work.
> > > ÃÂ
> > > BTW there are two techniques for rigid tapping.ÃÂ The Z motion can be slaved to the commanded motion of the Spindle or it can be slaved to the actual position of the Spindle.ÃÂ There are advantages and disadvantages to both techniques.ÃÂ Currently your C progam is doing the first technique.ÃÂ If your accuracy is good I would leave this alone.ÃÂ But just wanted to point this out as an option.
> > > ÃÂ
> > > Regards
> > > TK
> > > ÃÂ
> > > ÃÂ
> > > From: michaelthomasn <michaelniksch@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Monday, July 30, 2012 2:27 PM
> > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > >
> > >
> > > ÃÂ
> > > Tom, is there any way to make a feedhold while M84 (thread grind for me) is executing?
> > >
> > > I have feedhold in mach trigger virtual bit 50, and start clears the bit. Then a watchdog in Kflop looks for bit 50 to stop or resume coordinated motion. This seems to work fine during gcode, but does not during the M84.
> > >
> > > Thanks,
> > >
> > > Mike
> > >
> > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > >
> > > > You got it......thanks again.
> > > >
> > > > Mike
> > > >
> > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Mike,
> > > > > ÃâÃÂ
> > > > > I think whenever Mach3 generates the tool path it Interprets through all the GCode which calls the M codes and triggers rigid tapping and so forth.
> > > > > ÃâÃÂ
> > > > > Try the Mach3 | Config | General Config | IgnoreÃâàM Calls while loading option.
> > > > > ÃâÃÂ
> > > > > Otherwise there may be a way to tell if it is a tool path regeneration inside the M84 and skip doing anything.
> > > > > ÃâÃÂ
> > > > > Regards
> > > > > TKÃâÃÂ
> > > > >
> > > > > From: michaelthomasn <michaelniksch@>
> > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > Sent: Monday, July 30, 2012 10:22 AM
> > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > >
> > > > >
> > > > > ÃâÃÂ
> > > > > Ok....the problem seems to stem from mach trying to generate the toolpath. I have just been pressing cancel. It wants to hang up on the m84.
> > > > >
> > > > > If I got to the top of the screen and select view/regen toolpath....the same thing will happen.
> > > > >
> > > > > Ideas???
> > > > >
> > > > > Mike
> > > > >
> > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > >
> > > > > > Tom,
> > > > > >
> > > > > > I installed the lockdown version. It still does the same things. If I use the load button, or the edit button to open or modify a program with a notify plugin......it starts on its own on return to mach.
> > > > > >
> > > > > > It does not do this with a regular g code pgm.
> > > > > >
> > > > > > I am using the turn version with an different screenset.
> > > > > > ??????
> > > > > >
> > > > > > Mike
> > > > > >
> > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > > > >
> > > > > > > Tom,
> > > > > > >
> > > > > > > Yours may not have worked because I may have not followed your directions properly.....lol. It let me know where to look, though.
> > > > > > >
> > > > > > > I left the DoTap(-ZDist, RetractRate, TPI); in because I need the spindle axis to return to exactly where it started when doing the multiple passes necessary for the operation and I didn't know how to do it otherwise. I'm open to suggestions, though. :-)
> > > > > > >
> > > > > > > I didn't think to try running a regular program without plugin calls to see if it would do the self start. I'll try that first to maybe narrow down things a bit.
> > > > > > >
> > > > > > > Thanks,
> > > > > > >
> > > > > > > Mike
> > > > > > >
> > > > > > > On Jul 29, 2012, at 5:19 PM, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > > Hi Mike,
> > > > > > > >
> > > > > > > > Not sure why mine didn't work. But anyways yours is good.
> > > > > > > >
> > > > > > > > I think if you remove the line:
> > > > > > > >
> > > > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > > >
> > > > > > > > Then it will do a rapid move back in Z rather than an "unTap" type of move so it will be faster.
> > > > > > > >
> > > > > > > > I haven't seen that weird self start of Mach3. Hard to imagine how our Plugin could be doing that. Please try the lockdown version to see if it persists.
> > > > > > > >
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > Sent: Saturday, July 28, 2012 11:31 AM
> > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > >
> > > > > > > >
> > > > > > > > Tom,
> > > > > > > >
> > > > > > > > I made the adjustments you suggested to the notifytap program, and I could not get it to run the tap sequence. It would position itself in preparation, then just skip over the tap part and move on to the code after.
> > > > > > > >
> > > > > > > > I fiddled around with it and just ended up adding some lines in the c program to do the retract. It seems to work ok. I uploaded the c prog and my XML to my folder. Could you let me know if it is an acceptable way to do the retract?
> > > > > > > >
> > > > > > > > Also, an odd thing happens when using the edit button in Mach. I press the button, and it brings up the txt file. I make my adjustment, save it, and when I close the file the program immediately runs in mach without my consent. If I hit the emergency stop, the program stops.....but when I re-initialize it will start again where it was when I hit the E-stop. I wonder if this is just some weird anomaly in MachTurn. I am using 3.043.062....because I heard that the lockdown version had problems in Turn. Maybe I should try the lockdown.
> > > > > > > >
> > > > > > > > Any ideas on that?
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > >
> > > > > > > > Mike
> > > > > > > >
> > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > > > > > >
> > > > > > > > > Tom,
> > > > > > > > >
> > > > > > > > > Yes, adding code before and after should be fine. I will remove the lines you suggested and give it a go Monday morning.
> > > > > > > > >
> > > > > > > > > Thanks very much,
> > > > > > > > >
> > > > > > > > > Mike
> > > > > > > > >
> > > > > > > > > On Jul 27, 2012, at 5:16 PM, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > > Hi Mike,
> > > > > > > > > >
> > > > > > > > > > I would just add the X plunge in GCode before doing the Rigid Tap operation. Shouldn't that work for you? That might delay a bit after the X plunge before the Spindle starts rotating. Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point.
> > > > > > > > > >
> > > > > > > > > > To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program.
> > > > > > > > > >
> > > > > > > > > > // retract fully
> > > > > > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > > > > > and also add the +ZDist as shown below
> > > > > > > > > >
> > > > > > > > > > Delay_sec(1.0);
> > > > > > > > > > Move(ZAXIS,Z0+ZDist); // move to where we ended up
> > > > > > > > > > while (!CheckDone(ZAXIS)) ;
> > > > > > > > > > Let me know how much of this works :}
> > > > > > > > > >
> > > > > > > > > > TK
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > Sent: Friday, July 27, 2012 1:35 PM
> > > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Tom,
> > > > > > > > > >
> > > > > > > > > > I mean I did not set up the spindle as a motor output in Mach.
> > > > > > > > > >
> > > > > > > > > > I copied over the rigid tapping script and put the proper c program into the plugin and had it rigid tapping in air on the grinder. It looked like it should, and I didn't get any error messages.
> > > > > > > > > >
> > > > > > > > > > If the machine will tap without any encoder following error at 700rpm, then I feel like it should thread grind at 1 rpm without trouble...lol.
> > > > > > > > > >
> > > > > > > > > > So after looking over the c program for the rigid tapping, I must admit that there is a fair amount of stuff I don't follow and I need some help to modify it to thread grind.
> > > > > > > > > >
> > > > > > > > > > I basically need to do exactly what the rigid tap does in z and spindle movement, but add a plunge in x (Lathe setup) at the beginning of the sequence and a retract in x at the end of the thread before the rewind. Does that make sense the way I described it?
> > > > > > > > > >
> > > > > > > > > > Actually, the rewind (tap retract) is not necessary, I just need to be able to run the sequence over and over from the same start point on the spindle and z for multiple passes.
> > > > > > > > > >
> > > > > > > > > > Let me know what you think.
> > > > > > > > > >
> > > > > > > > > > Thanks,
> > > > > > > > > >
> > > > > > > > > > Mike
> > > > > > > > > >
> > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Hi Mike,
> > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡
> > > > > > > > > > > I'm not sure I follow all that.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ But if your happy, I'm happy.
> > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡
> > > > > > > > > > > Regards
> > > > > > > > > > > TK
> > > > > > > > > > >
> > > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > > Sent: Friday, July 27, 2012 8:09 AM
> > > > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡
> > > > > > > > > > >
> > > > > > > > > > > Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.
> > > > > > > > > > >
> > > > > > > > > > > I hope that is right.
> > > > > > > > > > >
> > > > > > > > > > > Its working right so far.
> > > > > > > > > > >
> > > > > > > > > > > On to the rigid tap journey.
> > > > > > > > > > >
> > > > > > > > > > > Thanks,
> > > > > > > > > > >
> > > > > > > > > > > Mike
> > > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > Oh....Ok. It works great as far as direction goes, now.
> > > > > > > > > > > >
> > > > > > > > > > > > I don't know what I saved/sent.....I thought it was right, but obviously not.
> > > > > > > > > > > >
> > > > > > > > > > > > Accurate speed is now what I'm after.
> > > > > > > > > > > >
> > > > > > > > > > > > My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
> > > > > > > > > > > >
> > > > > > > > > > > > So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
> > > > > > > > > > > >
> > > > > > > > > > > > How do I set up the spindle in Mach motor config?
> > > > > > > > > > > >
> > > > > > > > > > > > What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
> > > > > > > > > > > >
> > > > > > > > > > > > Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
> > > > > > > > > > > >
> > > > > > > > > > > > I messed with it for a bit but didn't seem to make much headway.
> > > > > > > > > > > >
> > > > > > > > > > > > Thanks again,
> > > > > > > > > > > >
> > > > > > > > > > > > Mike
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > > > >
> > > > > > > > > > > > > Hi Mike,
> > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡
> > > > > > > > > > > > > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ Switch relays or whatever.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ I assume your spindle can jog + and - like an servo?ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ I've uploaded a file to your folder that may work for you.
> > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡
> > > > > > > > > > > > > The XML file doesn't seem to have any Dynomotion Configuration in it.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ Did you upload the right file?ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ Did you save the Mach3 Settings?
> > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡
> > > > > > > > > > > > > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡
> > > > > > > > > > > > > Let me know haw far this gets you.
> > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡
> > > > > > > > > > > > > Regards
> > > > > > > > > > > > > TK
> > > > > > > > > > > > >
> > > > > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > > > > Sent: Thursday, July 26, 2012 3:12 PM
> > > > > > > > > > > > > Subject: [DynoMotion] Mach 3 Spindle struggle
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡
> > > > > > > > > > > > > Tom,
> > > > > > > > > > > > >
> > > > > > > > > > > > > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> > > > > > > > > > > > >
> > > > > > > > > > > > > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> > > > > > > > > > > > >
> > > > > > > > > > > > > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> > > > > > > > > > > > >
> > > > > > > > > > > > > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> > > > > > > > > > > > >
> > > > > > > > > > > > > I have attached my XML and spindle prog in my folder.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Please help.....I've tried most everything.
> > > > > > > > > > > > >
> > > > > > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > > > > > > > > > > >
> > > > > > > > > > > > > Mike
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 5493 |
From: Tom Kerekes |
Date: 7/31/2012 |
Subject: Re: Mach 3 Spindle struggle |
Hi Mike,
Another oops on my end. The Tap Cycle ends as soon as CheckDone(SPINDLE_AXIS) becomes true. And Jogging to zero speed will also set CheckDone and exit as if it finished. I changed it too keep looping and waiting while CheckDone is false or we are in FeedHold.
Try the V2 I uploaded.
Regards
TK
Group: DynoMotion |
Message: 5496 |
From: michaelthomasn |
Date: 7/31/2012 |
Subject: Re: Mach 3 Spindle struggle |
Tom....No problem here.
I'll give it a go in the morning.
Thanks a ton for working on this.
Mike
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Mike,
> Â
> Another oops on my end. The Tap Cycle ends as soon as CheckDone(SPINDLE_AXIS) becomes true. And Jogging to zero speed will also set CheckDone and exit as if it finished. I changed it too keep looping and waiting while CheckDone is false or we are in FeedHold.
> Â
> Try the V2 I uploaded.
> Â
> Regards
> TK
>
> From: michaelthomasn <michaelniksch@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, July 31, 2012 10:04 AM
> Subject: [DynoMotion] Re: Mach 3 Spindle struggle
>
>
> Â
> Tom,
>
> It does stop now.....but only for a second before it moves to the x retract. It then continues as if it were never stopped.
>
> I wonder if it has anything to do with the lines I added for the x retract?
>
> Mike
>
> --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Mike,
> >
> > I see a bug.ÃÂ The last state of the feedhold was not being saved.ÃÂ I uploaded a new file that saves the feedhold state.ÃÂ Please give that a try.
> >
> >
> > Regarding the two slaving techniques: slaving to actual Spindle position is probably the best.ÃÂ If there is no Spindle positioning error then it doesn't matter both techniques will be the same.ÃÂ Your requirements are very tight.ÃÂ To do a 5mm pitch thread with 1um accuracy the spindle position must be known to 1/5000th of a rev!
> >
> > When slaving Z to actual Spindle Position the accuracy of the spindle servo theoretically doesn't matter because the Z axis will track how it actually moves.ÃÂ However if the measured Spindle position is noisy, for example dithers +/- several counts due to vibration, then having the Z Servo attempt to track that may cause more harm than good.ÃÂ In such a case it may be better to just have the Z axis follow the perfectly accurate and smooth Spindle trajectory instead.
> >
> > It is easy to switch between modes.ÃÂ Change the line:
> >
> >
> > ÃÂ ÃÂ ÃÂ MoveExp(ZAXIS,(chan[SPINDLE_AXIS].Dest-S0)*SlaveGain+Z0, TAU);ÃÂ ÃÂ ÃÂ
> >
> >
> > to:
> >
> > ÃÂ ÃÂ ÃÂ MoveExp(ZAXIS,(chan[SPINDLE_AXIS].Position-S0)*SlaveGain+Z0, TAU);
> >
> >
> >
> > Regards
> > TK
> >
> >
> > ________________________________
> > From: michaelthomasn <michaelniksch@>
> > To: mailto:DynoMotion%40yahoogroups.com
> > Sent: Tuesday, July 31, 2012 8:23 AM
> > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> >
> >
> > ÃÂ
> > Tom
> >
> > I just finished trying it out. It does not stop.....the really odd thing is that it actually rolls on by the set tap depth and keeps on tapping until I stop it with the Estop button. I verified that bit 50 is being set when I push feedhold.
> >
> > Mike
> >
> > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > >
> > > Great.....thanks a lot. I will give it a try tomorrow.
> > >
> > > As far as the two techniques are concerned....I would look for whatever is the most accurate. I didn't realize there was a choice.
> > >
> > > Is it a pain to do the second technique?
> > >
> > > The owner of this shop makes ballscrews and very high precision shafts that are checked by cmm. The idea was to make this machine dedicated for thread grinding carbide. The one thing that is in our favor is that the spindle moves very slow when thread grinding.
> > > Like 1 rpm or less....so I think everything will have an easier time tracking at the slow speeds. Even the multi start threads seldom have a pitch over 5mm.
> > >
> > > The machine has proven itself mechanically capable of maintaining .00005" in standard cylindrical grinding.....so as much accuracy that can be afforded electronically would be ideal.
> > >
> > > Again.....the thing moves really slow.
> > >
> > > Tell me what you think.
> > >
> > > Thanks again,
> > >
> > > Mike
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Mike,
> > > > ÃâÃÂ
> > > > Feed hold in the middle of Rigid tapping?ÃâàYou want everything :}
> > > > ÃâÃÂ
> > > > Rigid Tapping is different than normal tapping as the Z is slaved to the Spindle.ÃâàI think we would need to stop the Spindle.ÃâàI've tried to add this to the C code and uploaded the file to your folder:
> > > > ÃâÃÂ
> > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > > ÃâÃÂ
> > > > It looks for your virtual bit and Jogs the Spindel Axis to zero speed whenever the virtual bit transitions high.ÃâàIt resumes the commanded spindle motion when the virtual bit transitions low.
> > > > ÃâÃÂ
> > > > Hopefully this might work.
> > > > ÃâÃÂ
> > > > BTW there are two techniques for rigid tapping.ÃâàThe Z motion can be slaved to the commanded motion of the Spindle or it can be slaved to the actual position of the Spindle.ÃâàThere are advantages and disadvantages to both techniques.ÃâàCurrently your C progam is doing the first technique.ÃâàIf your accuracy is good I would leave this alone.ÃâàBut just wanted to point this out as an option.
> > > > ÃâÃÂ
> > > > Regards
> > > > TK
> > > > ÃâÃÂ
> > > > ÃâÃÂ
> > > > From: michaelthomasn <michaelniksch@>
> > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > Sent: Monday, July 30, 2012 2:27 PM
> > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > >
> > > >
> > > > ÃâÃÂ
> > > > Tom, is there any way to make a feedhold while M84 (thread grind for me) is executing?
> > > >
> > > > I have feedhold in mach trigger virtual bit 50, and start clears the bit. Then a watchdog in Kflop looks for bit 50 to stop or resume coordinated motion. This seems to work fine during gcode, but does not during the M84.
> > > >
> > > > Thanks,
> > > >
> > > > Mike
> > > >
> > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > >
> > > > > You got it......thanks again.
> > > > >
> > > > > Mike
> > > > >
> > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Mike,
> > > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > I think whenever Mach3 generates the tool path it Interprets through all the GCode which calls the M codes and triggers rigid tapping and so forth.
> > > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > Try the Mach3 | Config | General Config | IgnoreÃÆ'ââ¬Å¡ÃâàM Calls while loading option.
> > > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > Otherwise there may be a way to tell if it is a tool path regeneration inside the M84 and skip doing anything.
> > > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > Regards
> > > > > > TKÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > >
> > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > Sent: Monday, July 30, 2012 10:22 AM
> > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > >
> > > > > >
> > > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > Ok....the problem seems to stem from mach trying to generate the toolpath. I have just been pressing cancel. It wants to hang up on the m84.
> > > > > >
> > > > > > If I got to the top of the screen and select view/regen toolpath....the same thing will happen.
> > > > > >
> > > > > > Ideas???
> > > > > >
> > > > > > Mike
> > > > > >
> > > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > > >
> > > > > > > Tom,
> > > > > > >
> > > > > > > I installed the lockdown version. It still does the same things. If I use the load button, or the edit button to open or modify a program with a notify plugin......it starts on its own on return to mach.
> > > > > > >
> > > > > > > It does not do this with a regular g code pgm.
> > > > > > >
> > > > > > > I am using the turn version with an different screenset.
> > > > > > > ??????
> > > > > > >
> > > > > > > Mike
> > > > > > >
> > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > > > > >
> > > > > > > > Tom,
> > > > > > > >
> > > > > > > > Yours may not have worked because I may have not followed your directions properly.....lol. It let me know where to look, though.
> > > > > > > >
> > > > > > > > I left the DoTap(-ZDist, RetractRate, TPI); in because I need the spindle axis to return to exactly where it started when doing the multiple passes necessary for the operation and I didn't know how to do it otherwise. I'm open to suggestions, though. :-)
> > > > > > > >
> > > > > > > > I didn't think to try running a regular program without plugin calls to see if it would do the self start. I'll try that first to maybe narrow down things a bit.
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > >
> > > > > > > > Mike
> > > > > > > >
> > > > > > > > On Jul 29, 2012, at 5:19 PM, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > > Hi Mike,
> > > > > > > > >
> > > > > > > > > Not sure why mine didn't work. But anyways yours is good.
> > > > > > > > >
> > > > > > > > > I think if you remove the line:
> > > > > > > > >
> > > > > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > > > >
> > > > > > > > > Then it will do a rapid move back in Z rather than an "unTap" type of move so it will be faster.
> > > > > > > > >
> > > > > > > > > I haven't seen that weird self start of Mach3. Hard to imagine how our Plugin could be doing that. Please try the lockdown version to see if it persists.
> > > > > > > > >
> > > > > > > > > Regards
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > Sent: Saturday, July 28, 2012 11:31 AM
> > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Tom,
> > > > > > > > >
> > > > > > > > > I made the adjustments you suggested to the notifytap program, and I could not get it to run the tap sequence. It would position itself in preparation, then just skip over the tap part and move on to the code after.
> > > > > > > > >
> > > > > > > > > I fiddled around with it and just ended up adding some lines in the c program to do the retract. It seems to work ok. I uploaded the c prog and my XML to my folder. Could you let me know if it is an acceptable way to do the retract?
> > > > > > > > >
> > > > > > > > > Also, an odd thing happens when using the edit button in Mach. I press the button, and it brings up the txt file. I make my adjustment, save it, and when I close the file the program immediately runs in mach without my consent. If I hit the emergency stop, the program stops.....but when I re-initialize it will start again where it was when I hit the E-stop. I wonder if this is just some weird anomaly in MachTurn. I am using 3.043.062....because I heard that the lockdown version had problems in Turn. Maybe I should try the lockdown.
> > > > > > > > >
> > > > > > > > > Any ideas on that?
> > > > > > > > >
> > > > > > > > > Thanks,
> > > > > > > > >
> > > > > > > > > Mike
> > > > > > > > >
> > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > > > > > > >
> > > > > > > > > > Tom,
> > > > > > > > > >
> > > > > > > > > > Yes, adding code before and after should be fine. I will remove the lines you suggested and give it a go Monday morning.
> > > > > > > > > >
> > > > > > > > > > Thanks very much,
> > > > > > > > > >
> > > > > > > > > > Mike
> > > > > > > > > >
> > > > > > > > > > On Jul 27, 2012, at 5:16 PM, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > > > Hi Mike,
> > > > > > > > > > >
> > > > > > > > > > > I would just add the X plunge in GCode before doing the Rigid Tap operation. Shouldn't that work for you? That might delay a bit after the X plunge before the Spindle starts rotating. Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point.
> > > > > > > > > > >
> > > > > > > > > > > To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program.
> > > > > > > > > > >
> > > > > > > > > > > // retract fully
> > > > > > > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > > > > > > and also add the +ZDist as shown below
> > > > > > > > > > >
> > > > > > > > > > > Delay_sec(1.0);
> > > > > > > > > > > Move(ZAXIS,Z0+ZDist); // move to where we ended up
> > > > > > > > > > > while (!CheckDone(ZAXIS)) ;
> > > > > > > > > > > Let me know how much of this works :}
> > > > > > > > > > >
> > > > > > > > > > > TK
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > > Sent: Friday, July 27, 2012 1:35 PM
> > > > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > Tom,
> > > > > > > > > > >
> > > > > > > > > > > I mean I did not set up the spindle as a motor output in Mach.
> > > > > > > > > > >
> > > > > > > > > > > I copied over the rigid tapping script and put the proper c program into the plugin and had it rigid tapping in air on the grinder. It looked like it should, and I didn't get any error messages.
> > > > > > > > > > >
> > > > > > > > > > > If the machine will tap without any encoder following error at 700rpm, then I feel like it should thread grind at 1 rpm without trouble...lol.
> > > > > > > > > > >
> > > > > > > > > > > So after looking over the c program for the rigid tapping, I must admit that there is a fair amount of stuff I don't follow and I need some help to modify it to thread grind.
> > > > > > > > > > >
> > > > > > > > > > > I basically need to do exactly what the rigid tap does in z and spindle movement, but add a plunge in x (Lathe setup) at the beginning of the sequence and a retract in x at the end of the thread before the rewind. Does that make sense the way I described it?
> > > > > > > > > > >
> > > > > > > > > > > Actually, the rewind (tap retract) is not necessary, I just need to be able to run the sequence over and over from the same start point on the spindle and z for multiple passes.
> > > > > > > > > > >
> > > > > > > > > > > Let me know what you think.
> > > > > > > > > > >
> > > > > > > > > > > Thanks,
> > > > > > > > > > >
> > > > > > > > > > > Mike
> > > > > > > > > > >
> > > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > > >
> > > > > > > > > > > > Hi Mike,
> > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá
> > > > > > > > > > > > I'm not sure I follow all that.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá But if your happy, I'm happy.
> > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá
> > > > > > > > > > > > Regards
> > > > > > > > > > > > TK
> > > > > > > > > > > >
> > > > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > > > Sent: Friday, July 27, 2012 8:09 AM
> > > > > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá
> > > > > > > > > > > >
> > > > > > > > > > > > Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.
> > > > > > > > > > > >
> > > > > > > > > > > > I hope that is right.
> > > > > > > > > > > >
> > > > > > > > > > > > Its working right so far.
> > > > > > > > > > > >
> > > > > > > > > > > > On to the rigid tap journey.
> > > > > > > > > > > >
> > > > > > > > > > > > Thanks,
> > > > > > > > > > > >
> > > > > > > > > > > > Mike
> > > > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > Oh....Ok. It works great as far as direction goes, now.
> > > > > > > > > > > > >
> > > > > > > > > > > > > I don't know what I saved/sent.....I thought it was right, but obviously not.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Accurate speed is now what I'm after.
> > > > > > > > > > > > >
> > > > > > > > > > > > > My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
> > > > > > > > > > > > >
> > > > > > > > > > > > > So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
> > > > > > > > > > > > >
> > > > > > > > > > > > > How do I set up the spindle in Mach motor config?
> > > > > > > > > > > > >
> > > > > > > > > > > > > What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
> > > > > > > > > > > > >
> > > > > > > > > > > > > I messed with it for a bit but didn't seem to make much headway.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Thanks again,
> > > > > > > > > > > > >
> > > > > > > > > > > > > Mike
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Hi Mike,
> > > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá
> > > > > > > > > > > > > > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá Switch relays or whatever.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá I assume your spindle can jog + and - like an
> servo?ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá I've uploaded a file to your folder that may work for you.
> > > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá
> > > > > > > > > > > > > > The XML file doesn't seem to have any Dynomotion Configuration in it.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá Did you upload the right file?ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá Did you save the Mach3 Settings?
> > > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá
> > > > > > > > > > > > > > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> > > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá
> > > > > > > > > > > > > > Let me know haw far this gets you.
> > > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá
> > > > > > > > > > > > > > Regards
> > > > > > > > > > > > > > TK
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > > > > > Sent: Thursday, July 26, 2012 3:12 PM
> > > > > > > > > > > > > > Subject: [DynoMotion] Mach 3 Spindle struggle
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá
> > > > > > > > > > > > > > Tom,
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > I have attached my XML and spindle prog in my folder.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Please help.....I've tried most everything.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Mike
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 5502 |
From: michaelthomasn |
Date: 8/1/2012 |
Subject: Re: Mach 3 Spindle struggle |
Tom,
The feedhold works great, now.
Thanks again,
Mike
--- In DynoMotion@yahoogroups.com, "michaelthomasn" <michaelniksch@...> wrote:
>
> Tom....No problem here.
>
> I'll give it a go in the morning.
>
> Thanks a ton for working on this.
>
> Mike
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Mike,
> > Â
> > Another oops on my end. The Tap Cycle ends as soon as CheckDone(SPINDLE_AXIS) becomes true. And Jogging to zero speed will also set CheckDone and exit as if it finished. I changed it too keep looping and waiting while CheckDone is false or we are in FeedHold.
> > Â
> > Try the V2 I uploaded.
> > Â
> > Regards
> > TK
> >
> > From: michaelthomasn <michaelniksch@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tuesday, July 31, 2012 10:04 AM
> > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> >
> >
> > Â
> > Tom,
> >
> > It does stop now.....but only for a second before it moves to the x retract. It then continues as if it were never stopped.
> >
> > I wonder if it has anything to do with the lines I added for the x retract?
> >
> > Mike
> >
> > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Mike,
> > >
> > > I see a bug.ÃÂ The last state of the feedhold was not being saved.ÃÂ I uploaded a new file that saves the feedhold state.ÃÂ Please give that a try.
> > >
> > >
> > > Regarding the two slaving techniques: slaving to actual Spindle position is probably the best.ÃÂ If there is no Spindle positioning error then it doesn't matter both techniques will be the same.ÃÂ Your requirements are very tight.ÃÂ To do a 5mm pitch thread with 1um accuracy the spindle position must be known to 1/5000th of a rev!
> > >
> > > When slaving Z to actual Spindle Position the accuracy of the spindle servo theoretically doesn't matter because the Z axis will track how it actually moves.ÃÂ However if the measured Spindle position is noisy, for example dithers +/- several counts due to vibration, then having the Z Servo attempt to track that may cause more harm than good.ÃÂ In such a case it may be better to just have the Z axis follow the perfectly accurate and smooth Spindle trajectory instead.
> > >
> > > It is easy to switch between modes.ÃÂ Change the line:
> > >
> > >
> > > ÃÂ ÃÂ ÃÂ MoveExp(ZAXIS,(chan[SPINDLE_AXIS].Dest-S0)*SlaveGain+Z0, TAU);ÃÂ ÃÂ ÃÂ
> > >
> > >
> > > to:
> > >
> > > ÃÂ ÃÂ ÃÂ MoveExp(ZAXIS,(chan[SPINDLE_AXIS].Position-S0)*SlaveGain+Z0, TAU);
> > >
> > >
> > >
> > > Regards
> > > TK
> > >
> > >
> > > ________________________________
> > > From: michaelthomasn <michaelniksch@>
> > > To: mailto:DynoMotion%40yahoogroups.com
> > > Sent: Tuesday, July 31, 2012 8:23 AM
> > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > >
> > >
> > > ÃÂ
> > > Tom
> > >
> > > I just finished trying it out. It does not stop.....the really odd thing is that it actually rolls on by the set tap depth and keeps on tapping until I stop it with the Estop button. I verified that bit 50 is being set when I push feedhold.
> > >
> > > Mike
> > >
> > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > >
> > > > Great.....thanks a lot. I will give it a try tomorrow.
> > > >
> > > > As far as the two techniques are concerned....I would look for whatever is the most accurate. I didn't realize there was a choice.
> > > >
> > > > Is it a pain to do the second technique?
> > > >
> > > > The owner of this shop makes ballscrews and very high precision shafts that are checked by cmm. The idea was to make this machine dedicated for thread grinding carbide. The one thing that is in our favor is that the spindle moves very slow when thread grinding.
> > > > Like 1 rpm or less....so I think everything will have an easier time tracking at the slow speeds. Even the multi start threads seldom have a pitch over 5mm.
> > > >
> > > > The machine has proven itself mechanically capable of maintaining .00005" in standard cylindrical grinding.....so as much accuracy that can be afforded electronically would be ideal.
> > > >
> > > > Again.....the thing moves really slow.
> > > >
> > > > Tell me what you think.
> > > >
> > > > Thanks again,
> > > >
> > > > Mike
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Mike,
> > > > > ÃâÃÂ
> > > > > Feed hold in the middle of Rigid tapping?ÃâàYou want everything :}
> > > > > ÃâÃÂ
> > > > > Rigid Tapping is different than normal tapping as the Z is slaved to the Spindle.ÃâàI think we would need to stop the Spindle.ÃâàI've tried to add this to the C code and uploaded the file to your folder:
> > > > > ÃâÃÂ
> > > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > > > ÃâÃÂ
> > > > > It looks for your virtual bit and Jogs the Spindel Axis to zero speed whenever the virtual bit transitions high.ÃâàIt resumes the commanded spindle motion when the virtual bit transitions low.
> > > > > ÃâÃÂ
> > > > > Hopefully this might work.
> > > > > ÃâÃÂ
> > > > > BTW there are two techniques for rigid tapping.ÃâàThe Z motion can be slaved to the commanded motion of the Spindle or it can be slaved to the actual position of the Spindle.ÃâàThere are advantages and disadvantages to both techniques.ÃâàCurrently your C progam is doing the first technique.ÃâàIf your accuracy is good I would leave this alone.ÃâàBut just wanted to point this out as an option.
> > > > > ÃâÃÂ
> > > > > Regards
> > > > > TK
> > > > > ÃâÃÂ
> > > > > ÃâÃÂ
> > > > > From: michaelthomasn <michaelniksch@>
> > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > Sent: Monday, July 30, 2012 2:27 PM
> > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > >
> > > > >
> > > > > ÃâÃÂ
> > > > > Tom, is there any way to make a feedhold while M84 (thread grind for me) is executing?
> > > > >
> > > > > I have feedhold in mach trigger virtual bit 50, and start clears the bit. Then a watchdog in Kflop looks for bit 50 to stop or resume coordinated motion. This seems to work fine during gcode, but does not during the M84.
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Mike
> > > > >
> > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > >
> > > > > > You got it......thanks again.
> > > > > >
> > > > > > Mike
> > > > > >
> > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Mike,
> > > > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > > I think whenever Mach3 generates the tool path it Interprets through all the GCode which calls the M codes and triggers rigid tapping and so forth.
> > > > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > > Try the Mach3 | Config | General Config | IgnoreÃÆ'ââ¬Å¡ÃâàM Calls while loading option.
> > > > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > > Otherwise there may be a way to tell if it is a tool path regeneration inside the M84 and skip doing anything.
> > > > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > > Regards
> > > > > > > TKÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > >
> > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > Sent: Monday, July 30, 2012 10:22 AM
> > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > >
> > > > > > >
> > > > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > > Ok....the problem seems to stem from mach trying to generate the toolpath. I have just been pressing cancel. It wants to hang up on the m84.
> > > > > > >
> > > > > > > If I got to the top of the screen and select view/regen toolpath....the same thing will happen.
> > > > > > >
> > > > > > > Ideas???
> > > > > > >
> > > > > > > Mike
> > > > > > >
> > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > > > >
> > > > > > > > Tom,
> > > > > > > >
> > > > > > > > I installed the lockdown version. It still does the same things. If I use the load button, or the edit button to open or modify a program with a notify plugin......it starts on its own on return to mach.
> > > > > > > >
> > > > > > > > It does not do this with a regular g code pgm.
> > > > > > > >
> > > > > > > > I am using the turn version with an different screenset.
> > > > > > > > ??????
> > > > > > > >
> > > > > > > > Mike
> > > > > > > >
> > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > > > > > >
> > > > > > > > > Tom,
> > > > > > > > >
> > > > > > > > > Yours may not have worked because I may have not followed your directions properly.....lol. It let me know where to look, though.
> > > > > > > > >
> > > > > > > > > I left the DoTap(-ZDist, RetractRate, TPI); in because I need the spindle axis to return to exactly where it started when doing the multiple passes necessary for the operation and I didn't know how to do it otherwise. I'm open to suggestions, though. :-)
> > > > > > > > >
> > > > > > > > > I didn't think to try running a regular program without plugin calls to see if it would do the self start. I'll try that first to maybe narrow down things a bit.
> > > > > > > > >
> > > > > > > > > Thanks,
> > > > > > > > >
> > > > > > > > > Mike
> > > > > > > > >
> > > > > > > > > On Jul 29, 2012, at 5:19 PM, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > > Hi Mike,
> > > > > > > > > >
> > > > > > > > > > Not sure why mine didn't work. But anyways yours is good.
> > > > > > > > > >
> > > > > > > > > > I think if you remove the line:
> > > > > > > > > >
> > > > > > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > > > > >
> > > > > > > > > > Then it will do a rapid move back in Z rather than an "unTap" type of move so it will be faster.
> > > > > > > > > >
> > > > > > > > > > I haven't seen that weird self start of Mach3. Hard to imagine how our Plugin could be doing that. Please try the lockdown version to see if it persists.
> > > > > > > > > >
> > > > > > > > > > Regards
> > > > > > > > > > TK
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > Sent: Saturday, July 28, 2012 11:31 AM
> > > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Tom,
> > > > > > > > > >
> > > > > > > > > > I made the adjustments you suggested to the notifytap program, and I could not get it to run the tap sequence. It would position itself in preparation, then just skip over the tap part and move on to the code after.
> > > > > > > > > >
> > > > > > > > > > I fiddled around with it and just ended up adding some lines in the c program to do the retract. It seems to work ok. I uploaded the c prog and my XML to my folder. Could you let me know if it is an acceptable way to do the retract?
> > > > > > > > > >
> > > > > > > > > > Also, an odd thing happens when using the edit button in Mach. I press the button, and it brings up the txt file. I make my adjustment, save it, and when I close the file the program immediately runs in mach without my consent. If I hit the emergency stop, the program stops.....but when I re-initialize it will start again where it was when I hit the E-stop. I wonder if this is just some weird anomaly in MachTurn. I am using 3.043.062....because I heard that the lockdown version had problems in Turn. Maybe I should try the lockdown.
> > > > > > > > > >
> > > > > > > > > > Any ideas on that?
> > > > > > > > > >
> > > > > > > > > > Thanks,
> > > > > > > > > >
> > > > > > > > > > Mike
> > > > > > > > > >
> > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Tom,
> > > > > > > > > > >
> > > > > > > > > > > Yes, adding code before and after should be fine. I will remove the lines you suggested and give it a go Monday morning.
> > > > > > > > > > >
> > > > > > > > > > > Thanks very much,
> > > > > > > > > > >
> > > > > > > > > > > Mike
> > > > > > > > > > >
> > > > > > > > > > > On Jul 27, 2012, at 5:16 PM, Tom Kerekes <tk@> wrote:
> > > > > > > > > > >
> > > > > > > > > > > > Hi Mike,
> > > > > > > > > > > >
> > > > > > > > > > > > I would just add the X plunge in GCode before doing the Rigid Tap operation. Shouldn't that work for you? That might delay a bit after the X plunge before the Spindle starts rotating. Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point.
> > > > > > > > > > > >
> > > > > > > > > > > > To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program.
> > > > > > > > > > > >
> > > > > > > > > > > > // retract fully
> > > > > > > > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > > > > > > > and also add the +ZDist as shown below
> > > > > > > > > > > >
> > > > > > > > > > > > Delay_sec(1.0);
> > > > > > > > > > > > Move(ZAXIS,Z0+ZDist); // move to where we ended up
> > > > > > > > > > > > while (!CheckDone(ZAXIS)) ;
> > > > > > > > > > > > Let me know how much of this works :}
> > > > > > > > > > > >
> > > > > > > > > > > > TK
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > > > Sent: Friday, July 27, 2012 1:35 PM
> > > > > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > Tom,
> > > > > > > > > > > >
> > > > > > > > > > > > I mean I did not set up the spindle as a motor output in Mach.
> > > > > > > > > > > >
> > > > > > > > > > > > I copied over the rigid tapping script and put the proper c program into the plugin and had it rigid tapping in air on the grinder. It looked like it should, and I didn't get any error messages.
> > > > > > > > > > > >
> > > > > > > > > > > > If the machine will tap without any encoder following error at 700rpm, then I feel like it should thread grind at 1 rpm without trouble...lol.
> > > > > > > > > > > >
> > > > > > > > > > > > So after looking over the c program for the rigid tapping, I must admit that there is a fair amount of stuff I don't follow and I need some help to modify it to thread grind.
> > > > > > > > > > > >
> > > > > > > > > > > > I basically need to do exactly what the rigid tap does in z and spindle movement, but add a plunge in x (Lathe setup) at the beginning of the sequence and a retract in x at the end of the thread before the rewind. Does that make sense the way I described it?
> > > > > > > > > > > >
> > > > > > > > > > > > Actually, the rewind (tap retract) is not necessary, I just need to be able to run the sequence over and over from the same start point on the spindle and z for multiple passes.
> > > > > > > > > > > >
> > > > > > > > > > > > Let me know what you think.
> > > > > > > > > > > >
> > > > > > > > > > > > Thanks,
> > > > > > > > > > > >
> > > > > > > > > > > > Mike
> > > > > > > > > > > >
> > > > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > > > >
> > > > > > > > > > > > > Hi Mike,
> > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá
> > > > > > > > > > > > > I'm not sure I follow all that.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá But if your happy, I'm happy.
> > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá
> > > > > > > > > > > > > Regards
> > > > > > > > > > > > > TK
> > > > > > > > > > > > >
> > > > > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > > > > Sent: Friday, July 27, 2012 8:09 AM
> > > > > > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá
> > > > > > > > > > > > >
> > > > > > > > > > > > > Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.
> > > > > > > > > > > > >
> > > > > > > > > > > > > I hope that is right.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Its working right so far.
> > > > > > > > > > > > >
> > > > > > > > > > > > > On to the rigid tap journey.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Thanks,
> > > > > > > > > > > > >
> > > > > > > > > > > > > Mike
> > > > > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Oh....Ok. It works great as far as direction goes, now.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > I don't know what I saved/sent.....I thought it was right, but obviously not.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Accurate speed is now what I'm after.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > How do I set up the spindle in Mach motor config?
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > I messed with it for a bit but didn't seem to make much headway.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Thanks again,
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Mike
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Hi Mike,
> > > > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá
> > > > > > > > > > > > > > > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá Switch relays or whatever.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá I assume your spindle can jog + and - like an
> > servo?ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá I've uploaded a file to your folder that may work for you.
> > > > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá
> > > > > > > > > > > > > > > The XML file doesn't seem to have any Dynomotion Configuration in it.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá Did you upload the right file?ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá Did you save the Mach3 Settings?
> > > > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá
> > > > > > > > > > > > > > > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> > > > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá
> > > > > > > > > > > > > > > Let me know haw far this gets you.
> > > > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá
> > > > > > > > > > > > > > > Regards
> > > > > > > > > > > > > > > TK
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > > > > > > Sent: Thursday, July 26, 2012 3:12 PM
> > > > > > > > > > > > > > > Subject: [DynoMotion] Mach 3 Spindle struggle
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦Ãâá
> > > > > > > > > > > > > > > Tom,
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > I have attached my XML and spindle prog in my folder.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Please help.....I've tried most everything.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Mike
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
|
|
| | | | | | | |
| | | |
| | | | | | | |